mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: fixed dummy switch on old firmware
This commit is contained in:
parent
09884c54c0
commit
1e3c90e94a
@ -548,9 +548,12 @@ export function Switch() {
|
||||
let params = {
|
||||
"port": port,
|
||||
"edid_id": $("__switch-port-edid-selector").value,
|
||||
"dummy": $("__switch-port-dummy-switch").checked,
|
||||
"name": $("__switch-port-name-input").value,
|
||||
};
|
||||
let el_dummy_switch = $("__switch-port-dummy-switch");
|
||||
if (el_dummy_switch) { // Only for devbuild or firmware >= 8
|
||||
params["dummy"] = $("__switch-port-dummy-switch").checked;
|
||||
}
|
||||
for (let action of Object.keys(atx_actions)) {
|
||||
params[`atx_click_${action}_delay`] = tools.slider.getValue($(`__switch-port-atx-click-${action}-delay-slider`));
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user