diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-14 06:27:14 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-14 06:27:14 +0000 |
commit | ae52df14eba4dfa72d14495219ed789329368ced (patch) | |
tree | e9ff684c1acdb65a3c3db323eec1be1067de4eba /remoting/webapp/event_handlers.js | |
parent | 23a2c7160d84153bf53d19cf2727433791a8627d (diff) | |
download | chromium_src-ae52df14eba4dfa72d14495219ed789329368ced.zip chromium_src-ae52df14eba4dfa72d14495219ed789329368ced.tar.gz chromium_src-ae52df14eba4dfa72d14495219ed789329368ced.tar.bz2 |
Fixed missing 'connecting' dialog after clicking reconnect.
Review URL: https://chromiumcodereview.appspot.com/16836018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/event_handlers.js')
-rw-r--r-- | remoting/webapp/event_handlers.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js index 8fa384e..a481e19 100644 --- a/remoting/webapp/event_handlers.js +++ b/remoting/webapp/event_handlers.js @@ -34,6 +34,10 @@ function onLoad() { remoting.connectIT2Me(); event.preventDefault(); }; + var reconnect = function() { + remoting.setMode(remoting.AppMode.CLIENT_CONNECTING); + remoting.connector.reconnect(); + }; var doAuthRedirect = function() { remoting.oauth2.doAuthRedirect(); }; @@ -62,8 +66,7 @@ function onLoad() { { event: 'click', id: 'host-finished-button', fn: goHome }, { event: 'click', id: 'client-finished-it2me-button', fn: goHome }, { event: 'click', id: 'client-finished-me2me-button', fn: goHome }, - { event: 'click', id: 'client-reconnect-button', - fn: function() { remoting.connector.reconnect(); } }, + { event: 'click', id: 'client-reconnect-button', fn: reconnect }, { event: 'click', id: 'cancel-access-code-button', fn: cancelAccessCode}, { event: 'click', id: 'cancel-connect-button', fn: goHome }, { event: 'click', id: 'toolbar-stub', |