summaryrefslogtreecommitdiff
path: root/web/share/js/wm.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-25 05:09:52 +0300
committerDevaev Maxim <[email protected]>2020-12-25 05:09:52 +0300
commit3ae6f3f881b4a116f962c919af8606ba32d905db (patch)
tree74e883600db81a12706df1e741b3cfb6b8c9e74b /web/share/js/wm.js
parentdd4c797d26bdd7107bfb748c1aced677ca083af0 (diff)
refactoring
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r--web/share/js/wm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js
index d9b0ee94..b9845256 100644
--- a/web/share/js/wm.js
+++ b/web/share/js/wm.js
@@ -162,7 +162,7 @@ function __WindowManager() {
return promise;
};
- self.switchEnabled = function(el, enabled) {
+ self.setElementEnabled = function(el, enabled) {
if (!enabled && document.activeElement === el) {
let el_to_focus = (
el.closest(".modal-window")
@@ -176,9 +176,9 @@ function __WindowManager() {
el.disabled = !enabled;
};
- self.switchRadioEnabled = function(name, enabled) {
+ self.setRadioEnabled = function(name, enabled) {
for (let el of $$$(`input[type="radio"][name="${name}"]`)) {
- self.switchEnabled(el, enabled);
+ self.setElementEnabled(el, enabled);
}
};