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 13:44:47 -06:00
parent f4d279771f
commit 44f4befa5a
2 changed files with 15 additions and 7 deletions

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) {