mirror of
https://github.com/portainer/portainer.git
synced 2025-07-27 17:29:39 +02:00
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
angular.module('portainer')
|
|
.directive('autoFocus', ['$timeout', function porAutoFocus($timeout) {
|
|
var directive = {
|
|
restrict: 'A',
|
|
link: function(scope, element) {
|
|
$timeout(function() {
|
|
element[0].focus();
|
|
});
|
|
}
|
|
};
|
|
|
|
return directive;
|
|
}]);
|