mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
feat(services): bind enter key when scaling a service (#1560)
This commit is contained in:
parent
f52ac8fb12
commit
46da85c8cf
3 changed files with 22 additions and 5 deletions
|
@ -1,11 +1,10 @@
|
|||
angular
|
||||
.module('portainer')
|
||||
angular.module('portainer')
|
||||
.directive('autoFocus', ['$timeout', function porAutoFocus($timeout) {
|
||||
var directive = {
|
||||
restrict: 'A',
|
||||
link: function($scope, $element) {
|
||||
link: function(scope, element) {
|
||||
$timeout(function() {
|
||||
$element[0].focus();
|
||||
element[0].focus();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue