summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 23:28:32 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 23:28:32 +0000
commit9fb1da3d87f9efae2351f006fd79242984dd31cd (patch)
treea90ab6fa685371581b7f9a65813c69c056618f61 /chrome
parent976b543a3090032207e27a0f0a4675b0ac633559 (diff)
downloadchromium_src-9fb1da3d87f9efae2351f006fd79242984dd31cd.zip
chromium_src-9fb1da3d87f9efae2351f006fd79242984dd31cd.tar.gz
chromium_src-9fb1da3d87f9efae2351f006fd79242984dd31cd.tar.bz2
Bookmarks manager: Use onsearch and incremental instead of a timer.
BUG=None TEST=Open bookmark manager. Searching should still work. Review URL: http://codereview.chromium.org/5530006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/bookmark_manager/main.html16
1 files changed, 3 insertions, 13 deletions
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html
index 856fe2b..8e30a45 100644
--- a/chrome/browser/resources/bookmark_manager/main.html
+++ b/chrome/browser/resources/bookmark_manager/main.html
@@ -55,7 +55,7 @@ found in the LICENSE file.
<button class="logo" tabindex=3></button>
<form onsubmit="setSearch(this.term.value); return false;"
class="form">
- <input type="search" id="term" tabindex=1 autofocus
+ <input type="search" id="term" tabindex=1 autofocus incremental
i18n-values="placeholder:search_button">
</form>
</div>
@@ -330,18 +330,8 @@ list.addEventListener('urlClicked', function(e) {
getLinkController().openUrlFromEvent(e.url, e.originalEvent);
});
-/**
- * Timer id used for delaying find-as-you-type
- */
-var inputDelayTimer;
-
-// Capture input changes to the search term input element and delay searching
-// for 250ms to reduce flicker.
-$('term').oninput = function(e) {
- clearTimeout(inputDelayTimer);
- inputDelayTimer = setTimeout(function() {
- setSearch($('term').value);
- }, 250);
+$('term').onsearch = function(e) {
+ setSearch(this.value);
};
/**