diff options
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; |