diff --git a/app/assets/javascripts/discourse/templates/composer.js.handlebars b/app/assets/javascripts/discourse/templates/composer.js.handlebars index 964428437..322ab1feb 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}}
- {{text-field value=editReason tabindex="5" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}} + {{text-field value=editReason tabindex="7" id="edit-reason" maxlength="255" placeholderKey="composer.edit_reason_placeholder"}}
{{else}} {{i18n composer.show_edit_reason}} @@ -44,7 +44,7 @@ {{#unless model.privateMessage}}
- {{category-chooser valueAttribute="id" value=model.categoryId scopedCategoryId=scopedCategoryId}} + {{category-chooser valueAttribute="id" value=model.categoryId scopedCategoryId=scopedCategoryId tabindex="3"}} {{popupInputTip validation=view.categoryValidation shownAt=view.showCategoryTip}}
{{#if model.archetype.hasOptions}} @@ -59,7 +59,7 @@
- {{composer-text-area tabindex="3" value=model.reply}} + {{composer-text-area tabindex="4" value=model.reply}} {{popupInputTip validation=view.replyValidation shownAt=view.showReplyTip}}
@@ -81,8 +81,8 @@ {{#if currentUser}}
- - {{i18n cancel}} + + {{i18n cancel}}
{{/if}} diff --git a/app/assets/javascripts/discourse/views/combo-box.js.es6 b/app/assets/javascripts/discourse/views/combo-box.js.es6 index 3b45af4d2..993bec951 100644 --- a/app/assets/javascripts/discourse/views/combo-box.js.es6 +++ b/app/assets/javascripts/discourse/views/combo-box.js.es6 @@ -8,6 +8,7 @@ **/ export default Discourse.View.extend({ tagName: 'select', + attributeBindings: ['tabindex'], classNames: ['combobox'], valueAttribute: 'id', @@ -74,8 +75,8 @@ export default Discourse.View.extend({ }, willClearRender: function() { - var chosenId = "s2id_" + this.$().attr('id'); - Ember.$("#" + chosenId).remove(); + var elementId = "s2id_" + this.$().attr('id'); + Ember.$("#" + elementId).remove(); } });