summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 01:13:57 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-06 01:13:57 +0000
commit9b11dab806c79400401555520bc9924d15f210ba (patch)
tree722851b57236eaa7775d71d209727117ba7ace7c /remoting
parent44879edeafb170c72ba93fc6dc274c442d4eacb2 (diff)
downloadchromium_src-9b11dab806c79400401555520bc9924d15f210ba.zip
chromium_src-9b11dab806c79400401555520bc9924d15f210ba.tar.gz
chromium_src-9b11dab806c79400401555520bc9924d15f210ba.tar.bz2
Don't propagate the click event if the user disables the daemon.
BUG=None TEST=Manual Review URL: https://chromiumcodereview.appspot.com/10009032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/webapp/event_handlers.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js
index 1fe85ea..98b6a1c 100644
--- a/remoting/webapp/event_handlers.js
+++ b/remoting/webapp/event_handlers.js
@@ -37,6 +37,11 @@ function onLoad() {
var doAuthRedirect = function() {
remoting.oauth2.doAuthRedirect();
};
+ /** @param {Event} event The event. */
+ var stopDaemon = function(event) {
+ remoting.hostSetupDialog.showForStop();
+ event.stopPropagation();
+ };
/** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
var actions = [
{ event: 'click', id: 'clear-oauth', fn: remoting.clearOAuth2 },
@@ -64,8 +69,7 @@ function onLoad() {
fn: function() { remoting.hostSetupDialog.showForStart(); } },
{ event: 'click', id: 'change-daemon-pin',
fn: function() { remoting.hostSetupDialog.showForPin(); } },
- { event: 'click', id: 'stop-daemon',
- fn: function() { remoting.hostSetupDialog.showForStop(); } },
+ { event: 'click', id: 'stop-daemon', fn: stopDaemon },
{ event: 'submit', id: 'access-code-form', fn: sendAccessCode },
{ event: 'submit', id: 'pin-form', fn: connectHostWithPin },
{ event: 'click', id: 'get-started-it2me',