Set focus automatically for new alias or redirect
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user