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 /** | 8 /** |
9 * The number of milliseconds used for showing a message. | 9 * The number of milliseconds used for showing a message. |
10 * @type {number} | 10 * @type {number} |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Initialize AboutPage. | 47 // Initialize AboutPage. |
48 initializePage: function() { | 48 initializePage: function() { |
49 // Call base class implementation to start preference initialization. | 49 // Call base class implementation to start preference initialization. |
50 OptionsPage.prototype.initializePage.call(this); | 50 OptionsPage.prototype.initializePage.call(this); |
51 | 51 |
52 $('checkNow').onclick = function(event) { | 52 $('checkNow').onclick = function(event) { |
53 chrome.send('CheckNow'); | 53 chrome.send('CheckNow'); |
54 }; | 54 }; |
55 | 55 |
56 $('moreInfoButton').onclick = function(event) { | 56 $('moreInfoButton').onclick = function(event) { |
57 $('aboutPageLessInfo').classList.add('hidden'); | 57 $('aboutPageLessInfo').hidden = true; |
58 $('aboutPageMoreInfo').classList.remove('hidden'); | 58 $('aboutPageMoreInfo').hidden = false; |
59 }; | 59 }; |
60 | 60 |
61 if (!AccountsOptions.currentUserIsOwner()) { | 61 if (!AccountsOptions.currentUserIsOwner()) { |
62 $('channelSelect').disabled = true; | 62 $('channelSelect').disabled = true; |
63 } else { | 63 } else { |
64 var self = this; | 64 var self = this; |
65 $('channelSelect').onchange = function(event) { | 65 $('channelSelect').onchange = function(event) { |
66 self.selectedOptionOnChange_(event.target.value); | 66 self.selectedOptionOnChange_(event.target.value); |
67 }; | 67 }; |
68 } | 68 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 AboutPage.changeToRestartButton = function() { | 204 AboutPage.changeToRestartButton = function() { |
205 AboutPage.getInstance().changeToRestartButton_(); | 205 AboutPage.getInstance().changeToRestartButton_(); |
206 }; | 206 }; |
207 | 207 |
208 // Export | 208 // Export |
209 return { | 209 return { |
210 AboutPage: AboutPage | 210 AboutPage: AboutPage |
211 }; | 211 }; |
212 | 212 |
213 }); | 213 }); |
OLD | NEW |