Auto-focus the tag name field in the add tag dialog
This commit is contained in:
parent
7e8713171e
commit
eee6a38c5f
2 changed files with 4 additions and 1 deletions
|
@ -471,6 +471,9 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi
|
|||
$scope.showAddTag = function(image) {
|
||||
$scope.toTagImage = image;
|
||||
$('#addTagModal').modal('show');
|
||||
setTimeout(function() {
|
||||
$('#tagName').focus();
|
||||
}, 500);
|
||||
};
|
||||
|
||||
$scope.isOwnedTag = function(image, tagName) {
|
||||
|
|
Reference in a new issue