summaryrefslogtreecommitdiff
path: root/web/share/js/login
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-29 02:11:44 +0300
committerMaxim Devaev <[email protected]>2021-07-29 02:11:44 +0300
commit02335734ceafa25c660110e1f8059ff60bcb6d84 (patch)
tree69e07e3031ae365fb2a509554f8a411a5d44d607 /web/share/js/login
parent33c34bd4efbb675ec0c700454c655575cffe26e9 (diff)
refactoring
Diffstat (limited to 'web/share/js/login')
-rw-r--r--web/share/js/login/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js
index 30e0c909..40a7894d 100644
--- a/web/share/js/login/main.js
+++ b/web/share/js/login/main.js
@@ -32,7 +32,7 @@ export function main() {
if (checkBrowser()) {
initWindowManager();
- tools.setOnClick($("login-button"), __login);
+ tools.el.setOnClick($("login-button"), __login);
$("user-input").onkeyup = $("passwd-input").onkeyup = function(event) {
if (event.code === "Enter") {
event.preventDefault();
@@ -75,9 +75,9 @@ function __login() {
}
function __setEnabled(enabled) {
- wm.setElementEnabled($("user-input"), enabled);
- wm.setElementEnabled($("passwd-input"), enabled);
- wm.setElementEnabled($("login-button"), enabled);
+ tools.el.setEnabled($("user-input"), enabled);
+ tools.el.setEnabled($("passwd-input"), enabled);
+ tools.el.setEnabled($("login-button"), enabled);
}
function __tryAgain() {