diff options
Diffstat (limited to 'chrome/browser/resources/bookmark_manager/main.html')
-rw-r--r-- | chrome/browser/resources/bookmark_manager/main.html | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html index 856fe2b..4fc5dc4 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> @@ -154,7 +154,7 @@ const Promise = cr.Promise; // Sometimes the extension API is not initialized. if (!chrome.bookmarks) - console.error('Bookmarks extension API is not avaiable'); + console.error('Bookmarks extension API is not available'); // Allow platform specific CSS rules. if (cr.isMac) @@ -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); }; /** |