summaryrefslogtreecommitdiff
path: root/web/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-01 13:08:35 +0300
committerDevaev Maxim <[email protected]>2018-12-01 13:08:35 +0300
commitad6a66ac8fcf7726540f750a6d83e5f80fb0cd71 (patch)
tree4399c5ef84385c90b867c4b6ef769cd68923469b /web/js/kvm/hid.js
parenta6d4545bafe750f894654fa3cddbfe15a89e6e6e (diff)
ui -> wm
Diffstat (limited to 'web/js/kvm/hid.js')
-rw-r--r--web/js/kvm/hid.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/web/js/kvm/hid.js b/web/js/kvm/hid.js
index c837b809..49d659ab 100644
--- a/web/js/kvm/hid.js
+++ b/web/js/kvm/hid.js
@@ -54,9 +54,9 @@ function Hid() {
/********************************************************************************/
self.setSocket = function(ws) {
- ui.switchDisabled($("hid-pak-text"), !ws);
- ui.switchDisabled($("hid-pak-button"), !ws);
- ui.switchDisabled($("hid-reset-button"), !ws);
+ wm.switchDisabled($("hid-pak-text"), !ws);
+ wm.switchDisabled($("hid-pak-button"), !ws);
+ wm.switchDisabled($("hid-reset-button"), !ws);
__ws = ws;
__keyboard.setSocket(ws);
__mouse.setSocket(ws);
@@ -152,10 +152,10 @@ function Hid() {
Are you sure you want to continue?
`;
- ui.confirm(confirm_msg).then(function(ok) {
+ wm.confirm(confirm_msg).then(function(ok) {
if (ok) {
- ui.switchDisabled($("hid-pak-text"), true);
- ui.switchDisabled($("hid-pak-button"), true);
+ wm.switchDisabled($("hid-pak-text"), true);
+ wm.switchDisabled($("hid-pak-button"), true);
$("hid-pak-led").className = "led-yellow-rotating-fast";
$("hid-pak-led").title = "Autotyping...";
@@ -169,8 +169,8 @@ function Hid() {
iterate();
} else {
$("hid-pak-text").value = "";
- ui.switchDisabled($("hid-pak-text"), false);
- ui.switchDisabled($("hid-pak-button"), false);
+ wm.switchDisabled($("hid-pak-text"), false);
+ wm.switchDisabled($("hid-pak-button"), false);
$("hid-pak-led").className = "led-gray";
$("hid-pak-led").title = "";
}
@@ -188,7 +188,7 @@ function Hid() {
var http = tools.makeRequest("POST", "/kvmd/hid/reset", function() {
if (http.readyState === 4) {
if (http.status !== 200) {
- ui.error("HID reset error:<br>", http.responseText);
+ wm.error("HID reset error:<br>", http.responseText);
}
}
});