diff --git a/app/assets/javascripts/admin/controllers/admin_github_commits_controller.js b/app/assets/javascripts/admin/controllers/admin_github_commits_controller.js index 0a6bd38ead1..5e8a7f57c1c 100644 --- a/app/assets/javascripts/admin/controllers/admin_github_commits_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_github_commits_controller.js @@ -10,4 +10,4 @@ Discourse.AdminGithubCommitsController = Ember.ArrayController.extend({ goToGithub: function() { window.open('https://github.com/discourse/discourse'); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/controllers/admin_logs_screened_ip_addresses_controller.js b/app/assets/javascripts/admin/controllers/admin_logs_screened_ip_addresses_controller.js index bbf06d69921..1e39d95a306 100644 --- a/app/assets/javascripts/admin/controllers/admin_logs_screened_ip_addresses_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_logs_screened_ip_addresses_controller.js @@ -94,4 +94,4 @@ Discourse.AdminLogsScreenedIpAddressController = Ember.ObjectController.extend({ }); } } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/controllers/admin_reports_controller.js b/app/assets/javascripts/admin/controllers/admin_reports_controller.js index 35fb54b7415..80252b49ec9 100644 --- a/app/assets/javascripts/admin/controllers/admin_reports_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_reports_controller.js @@ -16,4 +16,4 @@ Discourse.AdminReportsController = Ember.ObjectController.extend({ } } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js b/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js index 68e5b6d3afa..185ea0818a2 100644 --- a/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js @@ -25,4 +25,4 @@ Discourse.AdminSiteContentEditController = Discourse.Controller.extend({ } }); -Discourse.AdminSiteContentsController = Ember.ArrayController.extend({}); \ No newline at end of file +Discourse.AdminSiteContentsController = Ember.ArrayController.extend({}); diff --git a/app/assets/javascripts/admin/helpers/report_helpers.js b/app/assets/javascripts/admin/helpers/report_helpers.js index 270adc2c11f..5d0ee1ac455 100644 --- a/app/assets/javascripts/admin/helpers/report_helpers.js +++ b/app/assets/javascripts/admin/helpers/report_helpers.js @@ -14,4 +14,4 @@ Handlebars.registerHelper('valueAtTrustLevel', function(property, trustLevel) { return 0; } } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/routes/admin_customize_route.js b/app/assets/javascripts/admin/routes/admin_customize_route.js index 701a03fe58d..bb07dd524ce 100644 --- a/app/assets/javascripts/admin/routes/admin_customize_route.js +++ b/app/assets/javascripts/admin/routes/admin_customize_route.js @@ -10,4 +10,4 @@ Discourse.AdminCustomizeIndexRoute = Discourse.Route.extend({ redirect: function() { this.transitionTo('adminCustomize.colors'); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/routes/admin_logs_routes.js b/app/assets/javascripts/admin/routes/admin_logs_routes.js index 0ac57941d05..2a7dc72300c 100644 --- a/app/assets/javascripts/admin/routes/admin_logs_routes.js +++ b/app/assets/javascripts/admin/routes/admin_logs_routes.js @@ -105,4 +105,4 @@ Discourse.AdminLogsScreenedUrlsRoute = Discourse.Route.extend({ setupController: function() { return this.controllerFor('adminLogsScreenedUrls').show(); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/routes/admin_reports_route.js b/app/assets/javascripts/admin/routes/admin_reports_route.js index 2e9ab9d7cf4..cdc06720ecd 100644 --- a/app/assets/javascripts/admin/routes/admin_reports_route.js +++ b/app/assets/javascripts/admin/routes/admin_reports_route.js @@ -10,4 +10,4 @@ Discourse.AdminReportsRoute = Discourse.Route.extend({ model: function(params) { return Discourse.Report.find(params.type); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/admin/templates/customize_colors.js.handlebars b/app/assets/javascripts/admin/templates/customize_colors.js.handlebars index 006dde6fc56..0b9c6e13838 100644 --- a/app/assets/javascripts/admin/templates/customize_colors.js.handlebars +++ b/app/assets/javascripts/admin/templates/customize_colors.js.handlebars @@ -14,7 +14,7 @@
{{#with selectedItem}} -

{{textField class="style-name" value=name}}

+

{{text-field class="style-name" value=name}}

@@ -75,4 +75,4 @@
{{else}}

{{i18n admin.customize.colors.about}}

-{{/if}} \ No newline at end of file +{{/if}} diff --git a/app/assets/javascripts/admin/templates/customize_css_html.js.handlebars b/app/assets/javascripts/admin/templates/customize_css_html.js.handlebars index db0cb92bd2f..3323c13ba56 100644 --- a/app/assets/javascripts/admin/templates/customize_css_html.js.handlebars +++ b/app/assets/javascripts/admin/templates/customize_css_html.js.handlebars @@ -12,7 +12,7 @@ {{#if selectedItem}}
{{#with selectedItem}} - {{textField class="style-name" value=name}} + {{text-field class="style-name" value=name}}
- {{textField value=username placeholderKey="username"}} + {{text-field value=username placeholderKey="username"}}
diff --git a/app/assets/javascripts/admin/views/report/admin_report_counts_view.js b/app/assets/javascripts/admin/views/report/admin_report_counts_view.js index 0ef5d996149..fb7bb9c6286 100644 --- a/app/assets/javascripts/admin/views/report/admin_report_counts_view.js +++ b/app/assets/javascripts/admin/views/report/admin_report_counts_view.js @@ -1,4 +1,4 @@ Discourse.AdminReportCountsView = Discourse.View.extend({ templateName: 'admin/templates/reports/summed_counts_report', tagName: 'tbody' -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/ember/event_dispatcher.js b/app/assets/javascripts/discourse/ember/event_dispatcher.js index 700186f3169..7e5cea6fc71 100644 --- a/app/assets/javascripts/discourse/ember/event_dispatcher.js +++ b/app/assets/javascripts/discourse/ember/event_dispatcher.js @@ -30,4 +30,4 @@ Ember.EventDispatcher.reopen({ drop : 'drop', dragend : 'dragEnd' } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/helpers/grouped_each.js b/app/assets/javascripts/discourse/helpers/grouped_each.js index 86c3ce13d1d..d730ede8f43 100644 --- a/app/assets/javascripts/discourse/helpers/grouped_each.js +++ b/app/assets/javascripts/discourse/helpers/grouped_each.js @@ -130,4 +130,4 @@ Ember.Handlebars.registerHelper('groupedEach', function(path, options) { options.hash.dataSourceBinding = path; options.data.insideGroup = true; new DiscourseGroupedEach(this, path, options).render(); -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/initializers/deprecations.js.es6 b/app/assets/javascripts/discourse/initializers/deprecations.js.es6 index 2850b6da495..2bb5733132f 100644 --- a/app/assets/javascripts/discourse/initializers/deprecations.js.es6 +++ b/app/assets/javascripts/discourse/initializers/deprecations.js.es6 @@ -1,6 +1,8 @@ var deprecatedViewHelpers = { inputTip: 'input-tip', - pagedown: 'pagedown-editor' + pagedown: 'pagedown-editor', + textField: 'text-field', + userSelector: 'user-selector' }; export default { diff --git a/app/assets/javascripts/discourse/initializers/view-helpers.js.es6 b/app/assets/javascripts/discourse/initializers/view-helpers.js.es6 index d4014b32f28..2c5d144af6a 100644 --- a/app/assets/javascripts/discourse/initializers/view-helpers.js.es6 +++ b/app/assets/javascripts/discourse/initializers/view-helpers.js.es6 @@ -1,4 +1,4 @@ -var helpers = ['input-tip', 'pagedown-editor']; +var helpers = ['input-tip', 'pagedown-editor', 'text-field', 'user-selector']; /** Creates view helpers for some views. Many of these should probably be converted @@ -9,8 +9,8 @@ export default { initialize: function(container) { helpers.forEach(function(h) { Ember.Handlebars.registerHelper(h, function(options) { - var helper = container.lookupFactory('view:' + h); - var hash = options.hash, + var helper = container.lookupFactory('view:' + h), + hash = options.hash, types = options.hashTypes; Discourse.Utilities.normalizeHash(hash, types); diff --git a/app/assets/javascripts/discourse/mixins/scrolling.js b/app/assets/javascripts/discourse/mixins/scrolling.js index ff3f1b65620..b86631de22d 100644 --- a/app/assets/javascripts/discourse/mixins/scrolling.js +++ b/app/assets/javascripts/discourse/mixins/scrolling.js @@ -65,4 +65,4 @@ Discourse.ScrollingDOMMethods = { $(document).unbind('touchmove.discourse-' + name); } -}; \ No newline at end of file +}; diff --git a/app/assets/javascripts/discourse/models/composer_message.js b/app/assets/javascripts/discourse/models/composer_message.js index fc445340efe..106a4d12bf3 100644 --- a/app/assets/javascripts/discourse/models/composer_message.js +++ b/app/assets/javascripts/discourse/models/composer_message.js @@ -32,4 +32,4 @@ Discourse.ComposerMessage.reopenClass({ }); } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/models/trust_level.js b/app/assets/javascripts/discourse/models/trust_level.js index 673077b4026..86940101199 100644 --- a/app/assets/javascripts/discourse/models/trust_level.js +++ b/app/assets/javascripts/discourse/models/trust_level.js @@ -8,4 +8,4 @@ **/ Discourse.TrustLevel = Discourse.Model.extend({ detailedName: Discourse.computed.fmt('id', 'name', '%@ - %@') -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/routes/user_invited_route.js b/app/assets/javascripts/discourse/routes/user_invited_route.js index 98afbdaad7d..3856e383a6a 100644 --- a/app/assets/javascripts/discourse/routes/user_invited_route.js +++ b/app/assets/javascripts/discourse/routes/user_invited_route.js @@ -37,4 +37,4 @@ Discourse.UserInvitedRoute = Discourse.Route.extend({ } } -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/discourse/templates/category_notification_dropdown.js.handlebars b/app/assets/javascripts/discourse/templates/category_notification_dropdown.js.handlebars index dbf82240a92..22d91f0f728 100644 --- a/app/assets/javascripts/discourse/templates/category_notification_dropdown.js.handlebars +++ b/app/assets/javascripts/discourse/templates/category_notification_dropdown.js.handlebars @@ -14,4 +14,4 @@ {{/each}} -
\ No newline at end of file +
diff --git a/app/assets/javascripts/discourse/templates/choose_topic.js.handlebars b/app/assets/javascripts/discourse/templates/choose_topic.js.handlebars index 7f9cbf87961..a26ad376765 100644 --- a/app/assets/javascripts/discourse/templates/choose_topic.js.handlebars +++ b/app/assets/javascripts/discourse/templates/choose_topic.js.handlebars @@ -1,6 +1,6 @@ -{{textField value=view.topicTitle placeholderKey="choose_topic.title.placeholder" id="choose-topic-title"}} +{{text-field value=view.topicTitle placeholderKey="choose_topic.title.placeholder" id="choose-topic-title"}} {{#if view.loading}}

{{i18n loading}}

diff --git a/app/assets/javascripts/discourse/templates/components/auto-close-form.js.handlebars b/app/assets/javascripts/discourse/templates/components/auto-close-form.js.handlebars index 3493a3d89f5..11479923a7a 100644 --- a/app/assets/javascripts/discourse/templates/components/auto-close-form.js.handlebars +++ b/app/assets/javascripts/discourse/templates/components/auto-close-form.js.handlebars @@ -2,7 +2,7 @@
{{label}} - {{textField value=autoCloseTime}} + {{text-field value=autoCloseTime}} {{i18n composer.auto_close_units}}
diff --git a/app/assets/javascripts/discourse/templates/components/color-input.js.handlebars b/app/assets/javascripts/discourse/templates/components/color-input.js.handlebars index 18e2b107c01..e69d19d7e10 100644 --- a/app/assets/javascripts/discourse/templates/components/color-input.js.handlebars +++ b/app/assets/javascripts/discourse/templates/components/color-input.js.handlebars @@ -1 +1 @@ -{{textField class="hex-input" value=hexValue maxlength="6"}} +{{text-field class="hex-input" value=hexValue maxlength="6"}} diff --git a/app/assets/javascripts/discourse/templates/components/screened-ip-address-form.handlebars b/app/assets/javascripts/discourse/templates/components/screened-ip-address-form.handlebars index 883c21b13f0..9635dd3e5cd 100644 --- a/app/assets/javascripts/discourse/templates/components/screened-ip-address-form.handlebars +++ b/app/assets/javascripts/discourse/templates/components/screened-ip-address-form.handlebars @@ -1,4 +1,4 @@ {{i18n admin.logs.screened_ips.form.label}} -{{textField value=ip_address disabled=formSubmitted class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.ip_address" autocorrect="off" autocapitalize="off"}} +{{text-field value=ip_address disabled=formSubmitted class="ip-address-input" placeholderKey="admin.logs.screened_ips.form.ip_address" autocorrect="off" autocapitalize="off"}} {{combobox content=actionNames value=actionName}} diff --git a/app/assets/javascripts/discourse/templates/composer.js.handlebars b/app/assets/javascripts/discourse/templates/composer.js.handlebars index af51ac6963e..12b3cc8cfa0 100644 --- a/app/assets/javascripts/discourse/templates/composer.js.handlebars +++ b/app/assets/javascripts/discourse/templates/composer.js.handlebars @@ -16,7 +16,7 @@ {{#if canEdit}} {{#if showEditReason}}
- {{textField value=editReason tabindex="5" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}} + {{text-field value=editReason tabindex="5" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
{{else}} {{i18n composer.show_edit_reason}} @@ -27,18 +27,18 @@ {{#if model.canEditTitle}}
{{#if model.creatingPrivateMessage}} - {{userSelector topicId=controller.controllers.topic.model.id - excludeCurrentUser="true" - id="private-message-users" - include_groups="true" - class="span8" - placeholderKey="composer.users_placeholder" - tabindex="1" - usernames=model.targetUsernames}} + {{user-selector topicId=controller.controllers.topic.model.id + excludeCurrentUser="true" + id="private-message-users" + include_groups="true" + class="span8" + placeholderKey="composer.users_placeholder" + tabindex="1" + usernames=model.targetUsernames}} {{/if}}
- {{textField value=model.title tabindex="2" id="reply-title" maxlength="255" placeholderKey="composer.title_placeholder"}} + {{text-field value=model.title tabindex="2" id="reply-title" maxlength="255" placeholderKey="composer.title_placeholder"}} {{popupInputTip validation=view.titleValidation shownAt=view.showTitleTip}}
diff --git a/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars index 644dd2221b7..d9e39cbecde 100644 --- a/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars +++ b/app/assets/javascripts/discourse/templates/mobile/modal/login.js.handlebars @@ -19,7 +19,7 @@ - {{textField value=loginName placeholderKey="login.email_placeholder" id="login-account-name" autocorrect="off" autocapitalize="off"}} + {{text-field value=loginName placeholderKey="login.email_placeholder" id="login-account-name" autocorrect="off" autocapitalize="off"}} @@ -27,7 +27,7 @@ - {{textField value=loginPassword type="password" id="login-account-password"}}   + {{text-field value=loginPassword type="password" id="login-account-password"}}   diff --git a/app/assets/javascripts/discourse/templates/modal/change_owner.js.handlebars b/app/assets/javascripts/discourse/templates/modal/change_owner.js.handlebars index bcf7469d082..6a4ebc637c1 100644 --- a/app/assets/javascripts/discourse/templates/modal/change_owner.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/change_owner.js.handlebars @@ -6,7 +6,7 @@
- {{userSelector single=true usernames=new_user include_groups="false" placeholderKey="topic.change_owner.placeholder"}} + {{user-selector single=true usernames=new_user include_groups="false" placeholderKey="topic.change_owner.placeholder"}}
diff --git a/app/assets/javascripts/discourse/templates/modal/create_account.js.handlebars b/app/assets/javascripts/discourse/templates/modal/create_account.js.handlebars index 17328de77f6..878d200cda5 100644 --- a/app/assets/javascripts/discourse/templates/modal/create_account.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/create_account.js.handlebars @@ -6,7 +6,7 @@ - {{textField value=accountName id="new-account-name" autofocus="autofocus"}} + {{text-field value=accountName id="new-account-name" autofocus="autofocus"}}  {{input-tip validation=nameValidation}} diff --git a/app/assets/javascripts/discourse/templates/modal/edit_category.js.handlebars b/app/assets/javascripts/discourse/templates/modal/edit_category.js.handlebars index 3b8fb414d1e..29a85c42d4b 100644 --- a/app/assets/javascripts/discourse/templates/modal/edit_category.js.handlebars +++ b/app/assets/javascripts/discourse/templates/modal/edit_category.js.handlebars @@ -18,7 +18,7 @@
- {{textField value=name placeholderKey="category.name_placeholder" maxlength="50"}} + {{text-field value=name placeholderKey="category.name_placeholder" maxlength="50"}}
@@ -56,13 +56,13 @@
{{i18n category.background_color}}: - #{{textField value=color placeholderKey="category.color_placeholder" maxlength="6"}} + #{{text-field value=color placeholderKey="category.color_placeholder" maxlength="6"}} {{colorPicker colors=backgroundColors usedColors=usedBackgroundColors value=color}}
{{i18n category.foreground_color}}: - #{{textField value=text_color placeholderKey="category.color_placeholder" maxlength="6"}} + #{{text-field value=text_color placeholderKey="category.color_placeholder" maxlength="6"}} {{colorPicker colors=foregroundColors value=text_color}}
@@ -99,7 +99,7 @@
{{i18n category.auto_close_label}} - {{textField value=auto_close_hours}} + {{text-field value=auto_close_hours}} {{i18n category.auto_close_units}}
@@ -111,7 +111,7 @@
{{i18n category.email_in}} - {{textField value=email_in}} + {{text-field value=email_in}}