Set autofocus in clone modal
This commit is contained in:
+3
-3
@@ -1268,7 +1268,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
$scope.clone.portBindingsEnabled[env] = true;
|
||||
}
|
||||
|
||||
$('#cloneModal').modal('show');
|
||||
$('#appCloneModal').modal('show');
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
@@ -1331,7 +1331,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
return;
|
||||
}
|
||||
|
||||
$('#cloneModal').modal('hide');
|
||||
$('#appCloneModal').modal('hide');
|
||||
|
||||
$location.path('/apps');
|
||||
});
|
||||
@@ -1700,7 +1700,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
};
|
||||
|
||||
// setup all the dialog focus handling
|
||||
['appUninstallModal', 'appUpdateModal', 'appRestoreModal'].forEach(function (id) {
|
||||
['appUninstallModal', 'appUpdateModal', 'appRestoreModal', 'appCloneModal'].forEach(function (id) {
|
||||
$('#' + id).on('shown.bs.modal', function () {
|
||||
$(this).find('[autofocus]:first').focus();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user