summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2017-01-23 14:53:12 +0100
committerSamuel Mannehed <samuel@cendio.se>2017-01-27 16:20:53 +0100
commit3fdc69ceda028d68ce6b828b71f512a8c2d83928 (patch)
tree097ee6b69770353c6477253f6bd050e51d1406d0
parentb3d91b78e132494fcfa2fdafa1c85caff8788bd0 (diff)
downloadnovnc-3fdc69ceda028d68ce6b828b71f512a8c2d83928.tar.gz
Rename function for adding resize handlers
Moves the one handler for the status out of the function as well. It didn't fit in with the function's old name either.
-rw-r--r--app/ui.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/ui.js b/app/ui.js
index 8c208eb..4b9b27d 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -146,7 +146,7 @@ var UI;
UI.initFullscreen();
// Setup event handlers
- UI.setupWindowEvents();
+ UI.addResizeHandlers();
UI.addControlbarHandlers();
UI.addTouchSpecificHandlers();
UI.addExtraKeysHandlers();
@@ -154,6 +154,8 @@ var UI;
UI.addConnectionControlHandlers();
UI.addClipboardHandlers();
UI.addSettingsHandlers();
+ document.getElementById("noVNC_status")
+ .addEventListener('click', UI.hideStatus);
UI.openControlbar();
@@ -235,13 +237,10 @@ var UI;
UI.initSetting('reconnect_delay', 5000);
},
- setupWindowEvents: function() {
+ addResizeHandlers: function() {
window.addEventListener('resize', UI.applyResizeMode);
window.addEventListener('resize', UI.updateViewClip);
window.addEventListener('resize', UI.updateViewDrag);
-
- document.getElementById("noVNC_status")
- .addEventListener('click', UI.hideStatus);
},
addControlbarHandlers: function() {