Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2708)

Unified Diff: dashboard/dashboard/elements/autocomplete-box.html

Issue 2692243003: [dashboard] Use fuzzy autocomplete in autocomplete-box (Closed)
Patch Set: fix 2nd new presubmit Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/elements/autocomplete-box-test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/autocomplete-box.html
diff --git a/dashboard/dashboard/elements/autocomplete-box.html b/dashboard/dashboard/elements/autocomplete-box.html
index 5a77388ffd42544cf84fe5f8c4b06af706941fea..6a4c47618a2d5c1e5cbf1e30af00267a6c96bf07 100644
--- a/dashboard/dashboard/elements/autocomplete-box.html
+++ b/dashboard/dashboard/elements/autocomplete-box.html
@@ -49,7 +49,7 @@ property 'group' sets to the header item name.
<link rel="import" href="/components/paper-material/paper-material.html">
<link rel="import" href="/components/paper-menu/paper-menu.html">
-<link rel="import" href="/dashboard/static/autocomplete.html">
+<link rel="import" href="/dashboard/static/fuzzy_autocomplete.html">
<dom-module id="autocomplete-box">
<template>
@@ -302,7 +302,7 @@ property 'group' sets to the header item name.
},
computeSuggestedItems: function(query, items, _itemsChange) {
- var searcher = new autocomplete.Trie(items);
+ var searcher = new fuzzyAutocomplete.FuzzyAutocomplete(items);
return searcher.search(query);
},
« no previous file with comments | « no previous file | dashboard/dashboard/elements/autocomplete-box-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698