| 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 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |