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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 $('not-synced-controls').classList.remove('hidden'); | 48 $('not-synced-controls').classList.remove('hidden'); |
49 } | 49 } |
50 }); | 50 }); |
51 | 51 |
52 | 52 |
53 $('showpasswords').onclick = function(event) { | 53 $('showpasswords').onclick = function(event) { |
54 OptionsPage.showPageByName('passwordsExceptions'); | 54 OptionsPage.showPageByName('passwordsExceptions'); |
55 }; | 55 }; |
56 | 56 |
57 $('autofill_options').onclick = function(event) { | 57 $('autofill_options').onclick = function(event) { |
58 //TODO(sargrass): Show autofill dialog here. | 58 OptionsPage.showPageByName('autoFillOptions'); |
59 }; | 59 }; |
60 | 60 |
61 $('import_data').onclick = function(event) { | 61 $('import_data').onclick = function(event) { |
62 OptionsPage.showOverlay('importDataOverlay'); | 62 OptionsPage.showOverlay('importDataOverlay'); |
63 }; | 63 }; |
64 | 64 |
65 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { | 65 if(!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { |
66 $('themes_GTK_button').onclick = function(event) { | 66 $('themes_GTK_button').onclick = function(event) { |
67 //TODO(sargrass): Show themes GTK dialog here. | 67 //TODO(sargrass): Show themes GTK dialog here. |
68 }; | 68 }; |
(...skipping 19 matching lines...) Expand all Loading... |
88 PersonalOptions.getInstance().syncStatusCallback_(statusString); | 88 PersonalOptions.getInstance().syncStatusCallback_(statusString); |
89 }; | 89 }; |
90 | 90 |
91 // Export | 91 // Export |
92 return { | 92 return { |
93 PersonalOptions: PersonalOptions | 93 PersonalOptions: PersonalOptions |
94 }; | 94 }; |
95 | 95 |
96 }); | 96 }); |
97 | 97 |
OLD | NEW |