Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: chrome/browser/resources/options/sync_setup_overlay.js

Issue 7129001: In sync setup UI, reset onsubmit handler for sync configuration on load. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/sync_setup_overlay.js
diff --git a/chrome/browser/resources/options/sync_setup_overlay.js b/chrome/browser/resources/options/sync_setup_overlay.js
index fb439c46bb415b8a1fa882a462fb13c4dbce2e57..801ea9e29afadd24189ea07ac8476e648f246e27 100644
--- a/chrome/browser/resources/options/sync_setup_overlay.js
+++ b/chrome/browser/resources/options/sync_setup_overlay.js
@@ -58,10 +58,6 @@ cr.define('options', function() {
self.sendCredentialsAndClose_();
return false;
};
- $('choose-data-types-form').onsubmit = function() {
- self.sendConfiguration_();
- return false;
- };
$('google-option').onchange = $('explicit-option').onchange = function() {
self.onPassphraseRadioChanged_();
};
@@ -375,6 +371,13 @@ cr.define('options', function() {
this.resetPage_('sync-setup-configure');
$('sync-setup-configure').hidden = false;
+ // onsubmit is changed when submitting a passphrase. Reset it to its
+ // default.
+ $('choose-data-types-form').onsubmit = function() {
+ self.sendConfiguration_();
+ return false;
+ };
+
if (args) {
if (!args['encryptionEnabled'])
$('customize-sync-encryption').hidden = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698