Chromium Code Reviews| 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 ////////////////////////////////////////////////////////////////////////////// | 9 ////////////////////////////////////////////////////////////////////////////// |
| 10 // ContentSettings class: | 10 // ContentSettings class: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 } | 46 } |
| 47 | 47 |
| 48 var manageHandlersButton = | 48 var manageHandlersButton = |
| 49 this.pageDiv.querySelector('#manage-handlers-button'); | 49 this.pageDiv.querySelector('#manage-handlers-button'); |
| 50 if (manageHandlersButton) { | 50 if (manageHandlersButton) { |
| 51 manageHandlersButton.onclick = function(event) { | 51 manageHandlersButton.onclick = function(event) { |
| 52 OptionsPage.navigateToPage('handlers'); | 52 OptionsPage.navigateToPage('handlers'); |
| 53 }; | 53 }; |
| 54 } | 54 } |
| 55 | 55 |
| 56 var manageIntentsButton = | |
| 57 this.pageDiv.querySelector('#manage-intents-button'); | |
|
James Hawkins
2011/08/17 03:18:39
Just use $('manage-intents-button');
Greg Billock
2011/08/17 18:49:50
Done.
| |
| 58 if (manageIntentsButton) { | |
| 59 manageIntentsButton.onclick = function(event) { | |
| 60 OptionsPage.navigateToPage('intents'); | |
| 61 }; | |
| 62 } | |
| 63 | |
| 56 // Cookies filter page --------------------------------------------------- | 64 // Cookies filter page --------------------------------------------------- |
| 57 $('show-cookies-button').onclick = function(event) { | 65 $('show-cookies-button').onclick = function(event) { |
| 58 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 66 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
| 59 OptionsPage.navigateToPage('cookies'); | 67 OptionsPage.navigateToPage('cookies'); |
| 60 }; | 68 }; |
| 61 | 69 |
| 62 if (!templateData.enable_click_to_play) | 70 if (!templateData.enable_click_to_play) |
| 63 $('click_to_play').style.display = 'none'; | 71 $('click_to_play').style.display = 'none'; |
| 64 }, | 72 }, |
| 65 }; | 73 }; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 'list[mode=' + mode + ']'); | 144 'list[mode=' + mode + ']'); |
| 137 exceptionsList.patternValidityCheckComplete(pattern, valid); | 145 exceptionsList.patternValidityCheckComplete(pattern, valid); |
| 138 }; | 146 }; |
| 139 | 147 |
| 140 // Export | 148 // Export |
| 141 return { | 149 return { |
| 142 ContentSettings: ContentSettings | 150 ContentSettings: ContentSettings |
| 143 }; | 151 }; |
| 144 | 152 |
| 145 }); | 153 }); |
| OLD | NEW |