Ensure the focus is properly set when restoring

This commit is contained in:
Johannes Zellner
2015-08-12 14:35:51 +02:00
parent cbd712c20e
commit 8fb90254cd
+1 -1
View File
@@ -334,7 +334,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
};
// setup all the dialog focus handling
['appConfigureModal', 'appUninstallModal', 'appUpdateModal'].forEach(function (id) {
['appConfigureModal', 'appUninstallModal', 'appUpdateModal', 'appRestoreModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {
$(this).find("[autofocus]:first").focus();
});