Set focus automatically for new alias or redirect

This commit is contained in:
Johannes Zellner
2021-07-06 19:05:42 +02:00
parent f06c0530ce
commit d75d1a717c
2 changed files with 10 additions and 2 deletions

View File

@@ -294,6 +294,10 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
domain: $scope.domains.filter(function (d) { return d.domain === $scope.app.domain; })[0], // pre-select app's domain by default
subdomain: ''
});
setTimeout(function () {
document.getElementById('alternateDomainsInput-' + ($scope.location.alternateDomains.length-1)).focus();
}, 200);
},
delAlternateDomain: function (event, index) {
@@ -307,6 +311,10 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
domain: $scope.domains.filter(function (d) { return d.domain === $scope.app.domain; })[0], // pre-select app's domain by default
subdomain: ''
});
setTimeout(function () {
document.getElementById('aliasDomainsInput-' + ($scope.location.aliasDomains.length-1)).focus();
}, 200);
},
delAliasDomain: function (event, index) {