diff options
-rw-r--r-- | remoting/webapp/event_handlers.js | 4 | ||||
-rw-r--r-- | remoting/webapp/main.html | 4 | ||||
-rw-r--r-- | remoting/webapp/remoting.js | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js index 4ab665e..d1b1d75 100644 --- a/remoting/webapp/event_handlers.js +++ b/remoting/webapp/event_handlers.js @@ -34,6 +34,9 @@ function onLoad() { remoting.connectMe2MeWithPin(); event.preventDefault(); }; + var cancelPinEntry = function() { + remoting.initDaemonUi(); + } var doAuthRedirect = function() { remoting.oauth2.doAuthRedirect(); }; @@ -55,6 +58,7 @@ function onLoad() { { event: 'click', id: 'client-finished-it2me-button', fn: goFinishedIt2Me }, { event: 'click', id: 'client-finished-me2me-button', fn: goHome }, + { event: 'click', id: 'cancel-pin-entry-button', fn: cancelPinEntry }, { event: 'click', id: 'client-reconnect-button', fn: reload }, { event: 'click', id: 'cancel-access-code-button', fn: remoting.cancelConnect }, diff --git a/remoting/webapp/main.html b/remoting/webapp/main.html index c86e3d0..3fad92b 100644 --- a/remoting/webapp/main.html +++ b/remoting/webapp/main.html @@ -309,6 +309,10 @@ found in the LICENSE file. type="submit" i18n-content="CONNECT_BUTTON"> </button> + <button id="cancel-pin-entry-button" + type="button" + i18n-content="CANCEL"> + </button> </form> </div> </div> <!-- client.pin-prompt --> diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js index e7df0b3..e124316 100644 --- a/remoting/webapp/remoting.js +++ b/remoting/webapp/remoting.js @@ -79,7 +79,7 @@ remoting.init = function() { }; // initDaemonUi is called if the app is not starting up in session mode, and -// also if the user cancels the connection in session mode. +// also if the user cancels pin entry or the connection in session mode. remoting.initDaemonUi = function () { remoting.daemonPlugin = new remoting.DaemonPlugin(); remoting.daemonPlugin.updateDom(); |