| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 // | 9 // |
| 10 // PersonalOptions class | 10 // PersonalOptions class |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 if(event.value) { | 39 if(event.value) { |
| 40 chrome.send('getSyncStatus'); | 40 chrome.send('getSyncStatus'); |
| 41 $('synced-controls').classList.remove('hidden'); | 41 $('synced-controls').classList.remove('hidden'); |
| 42 $('not-synced-controls').classList.add('hidden'); | 42 $('not-synced-controls').classList.add('hidden'); |
| 43 } else { | 43 } else { |
| 44 $('synced-controls').classList.add('hidden'); | 44 $('synced-controls').classList.add('hidden'); |
| 45 $('not-synced-controls').classList.remove('hidden'); | 45 $('not-synced-controls').classList.remove('hidden'); |
| 46 } | 46 } |
| 47 }); | 47 }); |
| 48 | 48 |
| 49 | 49 $('showpasswords').onclick = function(event) { |
| 50 if(cr.isMac) { | 50 PasswordsExceptions.load(); |
| 51 $('showpasswords').onclick = function(event) { | 51 OptionsPage.showPageByName('passwordsExceptions'); |
| 52 //TODO(sargrass): Add the Mac implementation | 52 OptionsPage.showTab($('passwords-nav-tab')); |
| 53 } | 53 }; |
| 54 } else { | |
| 55 $('showpasswords').onclick = function(event) { | |
| 56 PasswordsExceptions.load(); | |
| 57 OptionsPage.showPageByName('passwordsExceptions'); | |
| 58 OptionsPage.showTab($('passwords-nav-tab')); | |
| 59 }; | |
| 60 } | |
| 61 | 54 |
| 62 $('autofill_options').onclick = function(event) { | 55 $('autofill_options').onclick = function(event) { |
| 63 OptionsPage.showPageByName('autoFillOptions'); | 56 OptionsPage.showPageByName('autoFillOptions'); |
| 64 }; | 57 }; |
| 65 | 58 |
| 66 if (!cr.isChromeOS) { | 59 if (!cr.isChromeOS) { |
| 67 $('stop-sync').onclick = function(event) { | 60 $('stop-sync').onclick = function(event) { |
| 68 OptionsPage.showOverlay('stopSyncingOverlay'); | 61 OptionsPage.showOverlay('stopSyncingOverlay'); |
| 69 }; | 62 }; |
| 70 $('import_data').onclick = function(event) { | 63 $('import_data').onclick = function(event) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 PersonalOptions.getInstance().syncStatusCallback_(statusString); | 97 PersonalOptions.getInstance().syncStatusCallback_(statusString); |
| 105 }; | 98 }; |
| 106 | 99 |
| 107 // Export | 100 // Export |
| 108 return { | 101 return { |
| 109 PersonalOptions: PersonalOptions | 102 PersonalOptions: PersonalOptions |
| 110 }; | 103 }; |
| 111 | 104 |
| 112 }); | 105 }); |
| 113 | 106 |
| OLD | NEW |