webapp: added set focus to text input for modals.

This commit is contained in:
Shreyas Zare
2021-03-13 13:24:48 +05:30
parent acf9b85f91
commit 96cdee48e5

View File

@@ -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;
}