summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-25 08:35:02 +0300
committerDevaev Maxim <[email protected]>2020-12-25 08:35:02 +0300
commit4447e49abb518a4da83d6adc16ca1bb5dcba5fae (patch)
tree3edc747b961f278de277ac794783ae2a264ba270 /web
parent08fc4130440001c69151884e12db1b3fb259971f (diff)
api refactoring
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/hid.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index bb00d4a7..abda40c5 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -231,7 +231,7 @@ export function Hid() {
var __clickOutputsRadio = function(hid) {
let output = tools.radioGetValue(`hid-outputs-${hid}-radio`);
- let http = tools.makeRequest("POST", `/api/hid/${hid}/set_params?output=${output}`, function() {
+ let http = tools.makeRequest("POST", `/api/hid/set_params?${hid}_output=${output}`, function() {
if (http.readyState === 4) {
if (http.status !== 200) {
wm.error("Can't configure HID:<br>", http.responseText);