diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-09 00:47:50 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-09 00:47:50 +0000 |
commit | db29bd631e0f46680fa6be6746d0f16f0a6ef8b3 (patch) | |
tree | 760e17c16448a9a8ddacf42d1a9e24be5d6ba324 | |
parent | 04d77b4590fa80ff396b35240214e278d5625a3b (diff) | |
download | chromium_src-db29bd631e0f46680fa6be6746d0f16f0a6ef8b3.zip chromium_src-db29bd631e0f46680fa6be6746d0f16f0a6ef8b3.tar.gz chromium_src-db29bd631e0f46680fa6be6746d0f16f0a6ef8b3.tar.bz2 |
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
-rw-r--r-- | chrome/browser/resources/options/cookies_view.js | 9 |
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(); } }, }; |