Ensure autofocus is handled

This commit is contained in:
Johannes Zellner
2016-06-07 10:43:33 +02:00
parent c86392cd60
commit a078c94b97

View File

@@ -239,7 +239,7 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat
});
// setup all the dialog focus handling
['passwordChangeModal', 'emailChangeModal', 'displayNameChangeModal'].forEach(function (id) {
['passwordChangeModal', 'emailChangeModal', 'displayNameChangeModal', 'clientAddModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {
$(this).find("[autofocus]:first").focus();
});