WIP Add companies, sort, test matches.
This commit is contained in:
parent
831173747e
commit
1fca56a56c
1 changed files with 9 additions and 8 deletions
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue