From 2ffbbdc0dbc0794eed1afed44d015a618917baba Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 16 Dec 2018 22:56:34 +0300 Subject: using wm.switchDisabled() --- web/share/js/login/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/share') diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index f949b8cf..ab844c50 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -39,9 +39,9 @@ function __login() { } function __setDisabled(disabled) { - $("user-input").disabled = disabled; - $("passwd-input").disabled = disabled; - $("login-button").disabled = disabled; + wm.switchDisabled($("user-input"), disabled); + wm.switchDisabled($("passwd-input"), disabled); + wm.switchDisabled($("login-button"), disabled); } function __tryAgain() { -- cgit v1.2.3