diff options
author | samhed <samuel@cendio.se> | 2016-04-26 23:59:44 +0200 |
---|---|---|
committer | samhed <samuel@cendio.se> | 2016-05-12 16:56:50 +0200 |
commit | afcf031a682e32c37a1bad24b1bd61bf02c3525e (patch) | |
tree | fcdf4bc528a30710a7681984f02c40effbc33e71 | |
parent | fdf21468d3a69fd0a2189317a03a11db135b40ed (diff) | |
download | novnc-afcf031a682e32c37a1bad24b1bd61bf02c3525e.tar.gz |
Send the xvp keys from anonymous functions
-rw-r--r-- | include/ui.js | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/include/ui.js b/include/ui.js index db0b3c1..0e35f87 100644 --- a/include/ui.js +++ b/include/ui.js @@ -218,9 +218,9 @@ var UI; $D("sendEscButton").onclick = UI.sendEsc; $D("sendCtrlAltDelButton").onclick = UI.sendCtrlAltDel; - $D("xvpShutdownButton").onclick = UI.xvpShutdown; - $D("xvpRebootButton").onclick = UI.xvpReboot; - $D("xvpResetButton").onclick = UI.xvpReset; + $D("xvpShutdownButton").onclick = function() { UI.rfb.xvpShutdown(); }, + $D("xvpRebootButton").onclick = function() { UI.rfb.xvpReboot(); }, + $D("xvpResetButton").onclick = function() { UI.rfb.xvpReset(); }, $D("noVNC_status").onclick = UI.popupStatus; $D("noVNC_popup_status").onclick = UI.closePopup; $D("xvpButton").onclick = UI.toggleXvpPanel; @@ -749,18 +749,6 @@ var UI; return false; }, - xvpShutdown: function() { - UI.rfb.xvpShutdown(); - }, - - xvpReboot: function() { - UI.rfb.xvpReboot(); - }, - - xvpReset: function() { - UI.rfb.xvpReset(); - }, - // Display the desktop name in the document title updateDocumentTitle: function(rfb, name) { document.title = name + " - noVNC"; |