Ensure autofocus on dialog open

This commit is contained in:
Johannes Zellner
2018-04-09 15:58:25 +02:00
parent 14536febaf
commit 10a3af8e5e
2 changed files with 6 additions and 6 deletions

View File

@@ -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();
});