mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
drive mode radio switch
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user