OLD | NEW |
---|---|
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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 | 6 |
7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 | 8 |
9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
10 // CookiesView class: | 10 // CookiesView class: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 chrome.send('updateCookieSearchResults', [filter]); | 81 chrome.send('updateCookieSearchResults', [filter]); |
82 } | 82 } |
83 }, | 83 }, |
84 | 84 |
85 /** | 85 /** |
86 * Handles search query changes. | 86 * Handles search query changes. |
87 * @param {!Event} e The event object. | 87 * @param {!Event} e The event object. |
88 * @private | 88 * @private |
89 */ | 89 */ |
90 handleSearchQueryChange_: function(e) { | 90 handleSearchQueryChange_: function(e) { |
91 if (document.querySelector('.cookies-search-box').value) { | |
92 document.querySelector('.remove-all-cookies-button').innerHTML = | |
93 loadTimeData.getString('remove_all_shown_cookie'); | |
94 } | |
95 else { | |
96 document.querySelector('.remove-all-cookies-button').innerHTML = | |
97 loadTimeData.getString('remove_all_cookie'); | |
98 } | |
Dan Beam
2014/05/27 17:44:30
i don't see the updated changes here. can you upl
| |
91 if (this.queryDelayTimerId_) | 99 if (this.queryDelayTimerId_) |
92 window.clearTimeout(this.queryDelayTimerId_); | 100 window.clearTimeout(this.queryDelayTimerId_); |
93 | 101 |
94 this.queryDelayTimerId_ = window.setTimeout( | 102 this.queryDelayTimerId_ = window.setTimeout( |
95 this.searchCookie.bind(this), 500); | 103 this.searchCookie.bind(this), 500); |
96 }, | 104 }, |
97 | 105 |
98 initialized_: false, | 106 initialized_: false, |
99 | 107 |
100 /** | 108 /** |
(...skipping 30 matching lines...) Expand all Loading... | |
131 CookiesView.loadChildren = function(args) { | 139 CookiesView.loadChildren = function(args) { |
132 $('cookies-list').loadChildren(args[0], args[1]); | 140 $('cookies-list').loadChildren(args[0], args[1]); |
133 }; | 141 }; |
134 | 142 |
135 // Export | 143 // Export |
136 return { | 144 return { |
137 CookiesView: CookiesView | 145 CookiesView: CookiesView |
138 }; | 146 }; |
139 | 147 |
140 }); | 148 }); |
OLD | NEW |