summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/mouse.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-03-27 06:57:43 +0300
committerDevaev Maxim <[email protected]>2019-03-27 06:57:43 +0300
commit2acec3f229070539e1c199977d4ad5e19af76075 (patch)
tree8e1e800dfb55a701143eba7bdcd25eddd41c4f0f /web/share/js/kvm/mouse.js
parent68f28c69f30b1289ff55963d056c8baa232136b1 (diff)
api refactoring
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r--web/share/js/kvm/mouse.js6
1 files changed, 3 insertions, 3 deletions
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";