summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/options/cookies_view.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/resources/options/cookies_view.js b/chrome/browser/resources/options/cookies_view.js
index 5d5283e..5dee25c 100644
--- a/chrome/browser/resources/options/cookies_view.js
+++ b/chrome/browser/resources/options/cookies_view.js
@@ -62,9 +62,8 @@ cr.define('options', function() {
* @param {!Event} e The event object.
*/
handleSearchQueryChange_: function(e) {
- if (this.queryDelayTimerId_) {
+ if (this.queryDelayTimerId_)
window.clearTimeout(this.queryDelayTimerId_);
- }
this.queryDelayTimerId_ = window.setTimeout(
this.searchCookie.bind(this), 500);
@@ -78,9 +77,13 @@ cr.define('options', function() {
* @param {Event} e Property change event.
*/
handleVisibleChange_: function(e) {
- if (!this.initialized_ && this.visible) {
+ if (!this.visible)
+ return;
+ if (!this.initialized_) {
this.initialized_ = true;
this.searchCookie();
+ } else {
+ $('cookies-list').redraw();
}
},
};