summaryrefslogtreecommitdiff
path: root/web/share/js/login
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-11-08 02:08:56 +0300
committerDevaev Maxim <[email protected]>2019-11-08 02:08:56 +0300
commit7f1461371d561592a1445e6b0245d51ca2516761 (patch)
tree057ad775af452346068306f58258a9d2609e7b7b /web/share/js/login
parent3c1681fd2bc43dffcc75b82760d3f068af97574c (diff)
refactoring
Diffstat (limited to 'web/share/js/login')
-rw-r--r--web/share/js/login/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js
index fff15caf..a76456d0 100644
--- a/web/share/js/login/main.js
+++ b/web/share/js/login/main.js
@@ -62,18 +62,18 @@ function __login() {
}
}
}, body, "application/x-www-form-urlencoded");
- __setDisabled(true);
+ __setEnabled(false);
}
}
-function __setDisabled(disabled) {
- wm.switchDisabled($("user-input"), disabled);
- wm.switchDisabled($("passwd-input"), disabled);
- wm.switchDisabled($("login-button"), disabled);
+function __setEnabled(enabled) {
+ wm.switchEnabled($("user-input"), enabled);
+ wm.switchEnabled($("passwd-input"), enabled);
+ wm.switchEnabled($("login-button"), enabled);
}
function __tryAgain() {
- __setDisabled(false);
+ __setEnabled(true);
$("passwd-input").focus();
$("passwd-input").select();
}