Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: chrome/browser/resources/options/about_page.js

Issue 7067036: Options: Remove the hidden class, since we override the hidden attribute to set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698