mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-29 13:00:35 +00:00
webapp: added set focus to text input for modals.
This commit is contained in:
@@ -508,6 +508,10 @@ function login(username, password) {
|
||||
|
||||
if ((username === "admin") && (password === "admin")) {
|
||||
$('#modalChangePassword').modal();
|
||||
|
||||
setTimeout(function () {
|
||||
$("#txtChangePasswordNewPassword").focus();
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
@@ -545,6 +549,10 @@ function resetChangePasswordModal() {
|
||||
$("#txtChangePasswordNewPassword").val("");
|
||||
$("#txtChangePasswordConfirmPassword").val("");
|
||||
|
||||
setTimeout(function () {
|
||||
$("#txtChangePasswordNewPassword").focus();
|
||||
}, 1000);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2156,6 +2164,10 @@ function resetImportAllowedZonesModal() {
|
||||
$("#divImportAllowedZonesAlert").html("");
|
||||
$("#txtImportAllowedZones").val("");
|
||||
|
||||
setTimeout(function () {
|
||||
$("#txtImportAllowedZones").focus();
|
||||
}, 1000);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2207,6 +2219,10 @@ function resetImportBlockedZonesModal() {
|
||||
$("#divImportBlockedZonesAlert").html("");
|
||||
$("#txtImportBlockedZones").val("");
|
||||
|
||||
setTimeout(function () {
|
||||
$("#txtImportBlockedZones").focus();
|
||||
}, 1000);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user