diff options
author | Samuel Mannehed <samuel@cendio.se> | 2017-11-11 02:31:19 +0100 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2017-11-14 15:36:12 +0100 |
commit | 689580381c9f96212213bd3dd65b94b5b4e36222 (patch) | |
tree | e260b90e2d7891f1a1373855f682a6a789d3f0c0 | |
parent | d623a029d6bc2347781d85a40b67645eec2b8300 (diff) | |
download | novnc-689580381c9f96212213bd3dd65b94b5b4e36222.tar.gz |
Move UI.cancelReconnect() to related functions
-rw-r--r-- | app/ui.js | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -1077,6 +1077,18 @@ var UI = { UI.connect(null, UI.reconnect_password); }, + cancelReconnect: function() { + if (UI.reconnect_callback !== null) { + clearTimeout(UI.reconnect_callback); + UI.reconnect_callback = null; + } + + UI.updateVisualState('disconnected'); + + UI.openControlbar(); + UI.openConnectPanel(); + }, + connectFinished: function (e) { UI.connected = true; UI.inhibit_reconnect = false; @@ -1135,18 +1147,6 @@ var UI = { UI.showStatus(msg, 'error'); }, - cancelReconnect: function() { - if (UI.reconnect_callback !== null) { - clearTimeout(UI.reconnect_callback); - UI.reconnect_callback = null; - } - - UI.updateVisualState('disconnected'); - - UI.openControlbar(); - UI.openConnectPanel(); - }, - /* ------^------- * /CONNECTION * ============== |