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

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

Issue 5608003: Add a disabled property to DOMUI lists (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a property Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/options_page.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 const OptionsPage = options.OptionsPage; 6 const OptionsPage = options.OptionsPage;
7 const ArrayDataModel = cr.ui.ArrayDataModel; 7 const ArrayDataModel = cr.ui.ArrayDataModel;
8 const ListSelectionModel = cr.ui.ListSelectionModel; 8 const ListSelectionModel = cr.ui.ListSelectionModel;
9 9
10 // 10 //
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 !this.homepage_is_newtabpage_pref_.managed)); 341 !this.homepage_is_newtabpage_pref_.managed));
342 }, 342 },
343 343
344 /** 344 /**
345 * Sets the enabled state of the custom startup page list controls 345 * Sets the enabled state of the custom startup page list controls
346 * based on the current startup radio button selection. 346 * based on the current startup radio button selection.
347 * @private 347 * @private
348 */ 348 */
349 updateCustomStartupPageControlStates_: function() { 349 updateCustomStartupPageControlStates_: function() {
350 var disable = !this.shouldEnableCustomStartupPageControls_(); 350 var disable = !this.shouldEnableCustomStartupPageControls_();
351 $('startupPages').disabled = disable;
351 $('startupAddButton').disabled = disable; 352 $('startupAddButton').disabled = disable;
352 $('startupUseCurrentButton').disabled = disable; 353 $('startupUseCurrentButton').disabled = disable;
353 this.updateRemoveButtonState_(); 354 this.updateRemoveButtonState_();
354 }, 355 },
355 356
356 /** 357 /**
357 * Sets the enabled state of the startup page Remove button based on 358 * Sets the enabled state of the startup page Remove button based on
358 * the current selection in the startup pages list. 359 * the current selection in the startup pages list.
359 * @private 360 * @private
360 */ 361 */
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 BrowserOptions.addStartupPage = function(url) { 417 BrowserOptions.addStartupPage = function(url) {
417 BrowserOptions.getInstance().addStartupPage_(url); 418 BrowserOptions.getInstance().addStartupPage_(url);
418 }; 419 };
419 420
420 // Export 421 // Export
421 return { 422 return {
422 BrowserOptions: BrowserOptions 423 BrowserOptions: BrowserOptions
423 }; 424 };
424 425
425 }); 426 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/options_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698