summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamhed <samuel@cendio.se>2016-04-26 23:29:15 +0200
committersamhed <samuel@cendio.se>2016-05-12 16:56:50 +0200
commit9e45354efcc4a7519f213fc9f68165c77d07f431 (patch)
treeb7f56875dd2a11dfb81236f3d45eae7e856d00c7
parentab81ddf5d48e83bde15c272eea9f993300ea7c21 (diff)
downloadnovnc-9e45354efcc4a7519f213fc9f68165c77d07f431.tar.gz
Renamed and moved updateXvpButton
-rw-r--r--include/ui.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/ui.js b/include/ui.js
index 60fb49f..2315772 100644
--- a/include/ui.js
+++ b/include/ui.js
@@ -186,7 +186,7 @@ var UI;
try {
UI.rfb = new RFB({'target': $D('noVNC_canvas'),
'onUpdateState': UI.updateState,
- 'onXvpInit': UI.updateXvpVisualState,
+ 'onXvpInit': UI.updateXvpButton,
'onClipboard': UI.clipReceive,
'onFBUComplete': UI.initialResize,
'onFBResize': UI.updateViewDrag,
@@ -319,7 +319,7 @@ var UI;
$D('showKeyboard').style.display = "none";
$D('noVNC_extra_keys').style.display = "none";
$D('sendCtrlAltDelButton').style.display = "none";
- UI.updateXvpVisualState(0);
+ UI.updateXvpButton(0);
}
// State change disables viewport dragging.
@@ -540,6 +540,19 @@ var UI;
}
},
+ // Disable/enable XVP button
+ updateXvpButton: function(ver) {
+ if (ver >= 1) {
+ $D('xvpButton').style.display = 'inline';
+ } else {
+ $D('xvpButton').style.display = 'none';
+ // Close XVP panel if open
+ if (UI.xvpOpen === true) {
+ UI.toggleXvpPanel();
+ }
+ }
+ },
+
// Show the clipboard panel
toggleClipboardPanel: function() {
// Close the description panel
@@ -772,19 +785,6 @@ var UI;
}
},
- // Disable/enable XVP button
- updateXvpVisualState: function(ver) {
- if (ver >= 1) {
- $D('xvpButton').style.display = 'inline';
- } else {
- $D('xvpButton').style.display = 'none';
- // Close XVP panel if open
- if (UI.xvpOpen === true) {
- UI.toggleXvpPanel();
- }
- }
- },
-
// Display the desktop name in the document title
updateDocumentTitle: function(rfb, name) {
document.title = name + " - noVNC";