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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 7094006: Fix enabled state of an input field in the browser settings. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Shorten code for disabling inputs. Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/options/browser_options_startup_page_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 871e5206cf07576bd31e58d313a3a2c3169884f8..cc7f6b7ad8b1a9c21fdf8a79e235bbbcc9a121fe 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -402,7 +402,13 @@ cr.define('options', function() {
*/
updateCustomStartupPageControlStates_: function() {
var disable = !this.shouldEnableCustomStartupPageControls();
- $('startupPagesList').disabled = disable;
+ var startupPagesList = $('startupPagesList');
+ startupPagesList.disabled = disable;
+ // Explicitly set disabled state for input text elements.
+ var inputs = startupPagesList.querySelectorAll("input[type='text']");
+ for (var i = 0; i < inputs.length; i++ ) {
James Hawkins 2011/06/08 23:16:17 nit: Remove braces.
kevers 2011/06/10 13:51:38 Done.
+ inputs[i].disabled = disable;
+ }
$('startupUseCurrentButton').disabled = disable;
},
« no previous file with comments | « no previous file | chrome/browser/resources/options/browser_options_startup_page_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698