OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('options', function() { | 5 cr.define('options', function() { |
6 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
7 | 7 |
8 // Variable to track if a captcha challenge was issued. If this gets set to | 8 // Variable to track if a captcha challenge was issued. If this gets set to |
9 // true, it stays that way until we are told about successful login from | 9 // true, it stays that way until we are told about successful login from |
10 // the browser. This means subsequent errors (like invalid password) are | 10 // the browser. This means subsequent errors (like invalid password) are |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 return false; | 63 return false; |
64 }; | 64 }; |
65 $('google-option').onchange = $('explicit-option').onchange = function() { | 65 $('google-option').onchange = $('explicit-option').onchange = function() { |
66 self.onRadioChange_(); | 66 self.onRadioChange_(); |
67 }; | 67 }; |
68 $('choose-datatypes-cancel').onclick = $('sync-setup-cancel').onclick = | 68 $('choose-datatypes-cancel').onclick = $('sync-setup-cancel').onclick = |
69 $('confirm-everything-cancel').onclick = function() { | 69 $('confirm-everything-cancel').onclick = function() { |
70 self.closeOverlay_(); | 70 self.closeOverlay_(); |
71 }; | 71 }; |
72 $('customize-link').onclick = function() { | 72 $('customize-link').onclick = function() { |
73 self.showCustomizePage_(false); | 73 self.showCustomizePage_(true); |
74 }; | 74 }; |
75 $('confirm-everything-ok').onclick = function() { | 75 $('confirm-everything-ok').onclick = function() { |
76 self.sendConfiguration_(); | 76 self.sendConfiguration_(); |
77 }; | 77 }; |
78 $('use-default-link').onclick = function() { | 78 $('use-default-link').onclick = function() { |
79 self.showSyncEverythingPage_(); | 79 self.showSyncEverythingPage_(); |
80 }; | 80 }; |
81 $('cancel-no-button').onclick = function() { | 81 $('cancel-no-button').onclick = function() { |
82 self.hideCancelWarning_(); | 82 self.hideCancelWarning_(); |
83 return false; | 83 return false; |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 668 |
669 SyncSetupOverlay.showSuccessAndSettingUp = function() { | 669 SyncSetupOverlay.showSuccessAndSettingUp = function() { |
670 SyncSetupOverlay.getInstance().showSuccessAndSettingUp_(); | 670 SyncSetupOverlay.getInstance().showSuccessAndSettingUp_(); |
671 }; | 671 }; |
672 | 672 |
673 // Export | 673 // Export |
674 return { | 674 return { |
675 SyncSetupOverlay: SyncSetupOverlay | 675 SyncSetupOverlay: SyncSetupOverlay |
676 }; | 676 }; |
677 }); | 677 }); |
OLD | NEW |