diff options
author | Devaev Maxim <[email protected]> | 2020-07-19 14:25:54 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-19 14:25:54 +0300 |
commit | ab13399a2afa07346f635f9c70fca93ec9201e5e (patch) | |
tree | 4aac943d5409459ab4123f3b701b8b7528a27142 /web/share/js/wm.js | |
parent | faedb829b95df47147442b784e4583ddfc4db252 (diff) |
drive mode radio switch
Diffstat (limited to 'web/share/js/wm.js')
-rw-r--r-- | web/share/js/wm.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 0ccffea5..18ae5957 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -170,6 +170,12 @@ function __WindowManager() { el.disabled = !enabled; }; + self.switchRadioEnabled = function(name, enabled) { + for (let el of $$$(`input[type="radio"][name="${name}"]`)) { + self.switchEnabled(el, enabled); + } + }; + self.showWindow = function(el_window, activate=true, center=false) { if (el_window.style.visibility === "hidden") { center = true; |