Index: chrome/browser/resources/options/cookies_view.js |
diff --git a/chrome/browser/resources/options/cookies_view.js b/chrome/browser/resources/options/cookies_view.js |
index 4d496684c428f87e17841876cdf7252ac3be9fa6..b0fadaad7075ac5c30f3970c9cbbc44afbd56f93 100644 |
--- a/chrome/browser/resources/options/cookies_view.js |
+++ b/chrome/browser/resources/options/cookies_view.js |
@@ -88,6 +88,15 @@ cr.define('options', function() { |
* @private |
*/ |
handleSearchQueryChange_: function(e) { |
+ var content = document.querySelector('.cookies-search-box').value.trim(); |
+ if (content) { |
+ document.querySelector('.remove-all-cookies-button').innerHTML = |
felt
2014/05/23 17:18:12
Instead of using innerHTML, can you use .value?
felt
2014/05/23 22:40:14
Radhika's response was:
|
+ loadTimeData.getString('remove_all_shown_cookie'); |
+ } |
+ else { |
+ document.querySelector('.remove-all-cookies-button').innerHTML = |
+ loadTimeData.getString('remove_all_cookie'); |
+ } |
if (this.queryDelayTimerId_) |
window.clearTimeout(this.queryDelayTimerId_); |
@@ -107,14 +116,12 @@ cr.define('options', function() { |
return; |
chrome.send('reloadCookies'); |
- |
felt
2014/05/23 17:18:12
did you intentionally delete these lines?
|
if (!this.initialized_) { |
this.initialized_ = true; |
this.searchCookie(); |
} else { |
this.pageDiv.querySelector('.cookies-list').redraw(); |
} |
- |
this.pageDiv.querySelector('.cookies-search-box').focus(); |
}, |
}; |