<div class="modal-foot">
<button id="coding-rules-submit-bulk-change">{{t 'apply'}}</button>
- <a class="js-modal-close">{{t 'close'}}</a>
+ <a class="js-modal-close" href="#">{{t 'close'}}</a>
</div>
</form>
</div>
<div class="modal-foot">
- <a class="js-modal-close" title="{{t 'close'}}">{{t 'close'}}</a>
+ <a class="js-modal-close" href="#">{{t 'close'}}</a>
</div>
</div>
<div class="modal-foot">
- <a class="js-modal-close">{{t 'close'}}</a>
+ <a class="js-modal-close" href="#">{{t 'close'}}</a>
</div>
</div>
<div class="modal-foot">
- <a class="js-modal-close" title="{{t 'close'}}">{{t 'close'}}</a>
+ <a class="js-modal-close" href="#">{{t 'close'}}</a>
</div>
looper.done(function () {
that.options.app.controller.fetchList();
that.$(that.ui.codingRulesSubmitBulkChange.selector).hide();
+ that.$('.js-modal-close').focus();
});
},
});
},
+ onRender: function () {
+ ModalView.prototype.onRender.apply(this, arguments);
+ var that = this;
+ setTimeout(function () {
+ that.$(':tabbable').first().focus();
+ }, 0);
+ },
+
onFormSubmit: function (e) {
e.preventDefault();
},
events: function () {
return {
- 'click .js-modal-close': 'close'
+ 'click .js-modal-close': 'onCloseClick'
};
},
key.setScope(this.keyScope);
},
+ onCloseClick: function (e) {
+ e.preventDefault();
+ this.close();
+ },
+
renderOverlay: function () {
var overlay = $('.' + this.overlayClassName);
if (overlay.length === 0) {