autocomplete: add automatic typo correction.

If normal autocomplete fails to find any results, try doing a
fuzzy name search instead. This will correct simple typos.
This commit is contained in:
evazion
2017-11-27 15:21:19 -06:00
parent f4d279771f
commit 44f4befa5a
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -244,7 +244,7 @@
$.ajax({
url: "/tags/autocomplete.json",
data: {
"search[name_matches]": term + "*"
"search[name_matches]": term
},
method: "get",
success: function(data) {