From 02335734ceafa25c660110e1f8059ff60bcb6d84 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 29 Jul 2021 02:11:44 +0300 Subject: refactoring --- web/share/js/login/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/share/js/login') 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() { -- cgit v1.2.3