Add autofocus to error and info dialogs

This commit is contained in:
Girish Ramakrishnan
2018-01-08 12:14:14 -08:00
parent 05775a843d
commit d56575facf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
});
// setup all the dialog focus handling
['appConfigureModal', 'appUninstallModal', 'appUpdateModal', 'appRestoreModal'].forEach(function (id) {
['appConfigureModal', 'appUninstallModal', 'appUpdateModal', 'appRestoreModal', 'appInfoModal', 'appErrorModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {
$(this).find("[autofocus]:first").focus();
});