diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/keyboard.js | 6 | ||||
-rw-r--r-- | web/share/js/kvm/mouse.js | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index f15c2b53..189abb2c 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -26,7 +26,7 @@ function Keyboard() { /************************************************************************/ var __ws = null; - var __ok = true; + var __online = true; var __keys = [].slice.call($$$("div#keyboard-desktop div.keyboard-block div.keyboard-row div.key")); var __modifiers = [].slice.call($$$("div#keyboard-desktop div.keyboard-block div.keyboard-row div.modifier")); @@ -77,7 +77,7 @@ function Keyboard() { }; self.setState = function(state) { - __ok = state.ok; + __online = state.online; __updateLeds(); }; @@ -102,7 +102,7 @@ function Keyboard() { var title = "Keyboard free"; if (__ws) { - if (__ok) { + if (__online) { if (is_captured) { led = "led-green"; title = "Keyboard captured"; diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 905c7a5d..1b93e6ab 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -26,7 +26,7 @@ function Mouse() { /************************************************************************/ var __ws = null; - var __ok = true; + var __online = true; var __current_pos = {x: 0, y:0}; var __sent_pos = {x: 0, y:0}; @@ -68,7 +68,7 @@ function Mouse() { }; self.setState = function(state) { - __ok = state.ok; + __online = state.online; __updateLeds(); }; @@ -88,7 +88,7 @@ function Mouse() { var title = "Mouse free"; if (__ws) { - if (__ok) { + if (__online) { if (is_captured) { led = "led-green"; title = "Mouse captured"; |