WIP Add companies, sort, test matches.

This commit is contained in:
Bryan Mauger 2024-03-01 10:40:33 -05:00
parent 831173747e
commit 1fca56a56c

View file

@ -119,17 +119,18 @@ export default {
"State Auto Insurance",
"State Farm Insurance",
"Travelers Insurance",
"AAA",
"AAA Ohio",
"AAA Indiana",
"AAA Florida",
"American Autombile Insurance Co",
"American Automobile Association",
"American Insurance",
];
tags.sort(); //Sort list alphabetically
$("#autocomplete").autocomplete({
source: function (request, response) {
var matcher = new RegExp("^" + $.ui.autocomplete.escapeRegex(request.term), "i");
response(
$.grep(tags, function (item) {
return matcher.test(item);
})
);
},
source: tags,
position: {
my: "left top+6",
},