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

Side by Side Diff: chrome/browser/resources/options2/pref_ui.js

Issue 9307026: make search box in settings page not get hidden behind enterprise warning (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make the banner show on the search page as well Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // TODO(jhawkins): Add dialog-pref support to all preference controls. 5 // TODO(jhawkins): Add dialog-pref support to all preference controls.
6 6
7 cr.define('options', function() { 7 cr.define('options', function() {
8 8
9 var Preferences = options.Preferences; 9 var Preferences = options.Preferences;
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 function updateElementState_(el, event) { 50 function updateElementState_(el, event) {
51 el.controlledBy = null; 51 el.controlledBy = null;
52 52
53 if (!event.value) 53 if (!event.value)
54 return; 54 return;
55 55
56 updateDisabledState_(el, 'notUserModifiable', event.value.disabled); 56 updateDisabledState_(el, 'notUserModifiable', event.value.disabled);
57 57
58 el.controlledBy = event.value['controlledBy']; 58 el.controlledBy = event.value['controlledBy'];
59 59
60 OptionsPage.updateManagedBannerVisibility(); 60 BrowserOptions.updateManagedBannerVisibility();
61 } 61 }
62 62
63 ///////////////////////////////////////////////////////////////////////////// 63 /////////////////////////////////////////////////////////////////////////////
64 // PrefCheckbox class: 64 // PrefCheckbox class:
65 // TODO(jhawkins): Refactor all this copy-pasted code! 65 // TODO(jhawkins): Refactor all this copy-pasted code!
66 66
67 // Define a constructor that uses an input element as its underlying element. 67 // Define a constructor that uses an input element as its underlying element.
68 var PrefCheckbox = cr.ui.define('input'); 68 var PrefCheckbox = cr.ui.define('input');
69 69
70 PrefCheckbox.prototype = { 70 PrefCheckbox.prototype = {
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 PrefNumber: PrefNumber, 745 PrefNumber: PrefNumber,
746 PrefNumeric: PrefNumeric, 746 PrefNumeric: PrefNumeric,
747 PrefRadio: PrefRadio, 747 PrefRadio: PrefRadio,
748 PrefRange: PrefRange, 748 PrefRange: PrefRange,
749 PrefSelect: PrefSelect, 749 PrefSelect: PrefSelect,
750 PrefTextField: PrefTextField, 750 PrefTextField: PrefTextField,
751 PrefButton: PrefButton 751 PrefButton: PrefButton
752 }; 752 };
753 753
754 }); 754 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698