From db29bd631e0f46680fa6be6746d0f16f0a6ef8b3 Mon Sep 17 00:00:00 2001 From: "mdm@chromium.org" Date: Sat, 9 Apr 2011 00:47:50 +0000 Subject: WebUI: force a cookies list redraw when the cookies page becomes visible. BUG=78867 TEST=see bug Review URL: http://codereview.chromium.org/6821022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81020 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/options/cookies_view.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'chrome') 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(); } }, }; -- cgit v1.1