Ensure autofocus on dialog open
This commit is contained in:
@@ -570,7 +570,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
});
|
||||
|
||||
// setup all the dialog focus handling
|
||||
['testEmailModal'].forEach(function (id) {
|
||||
['testEmailModal', 'mailboxAddModal', 'mailboxEditModal', 'mailinglistEditModal'].forEach(function (id) {
|
||||
$('#' + id).on('shown.bs.modal', function () {
|
||||
$(this).find("[autofocus]:first").focus();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user