mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Fix auto complete for tags and others. Adds search.
This commit is contained in:
11
public/js/ff/transactions/show.js
vendored
11
public/js/ff/transactions/show.js
vendored
@@ -32,11 +32,20 @@ $(function () {
|
||||
return {name: name};
|
||||
});
|
||||
}
|
||||
},
|
||||
remote: {
|
||||
url: autoCompleteUri + '?search=%QUERY',
|
||||
wildcard: '%QUERY',
|
||||
filter: function (list) {
|
||||
return $.map(list, function (name) {
|
||||
return {name: name};
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
transactions.initialize();
|
||||
var input=$("#link_other");
|
||||
input.typeahead({}, {source: transactions, displayKey: 'name', autoSelect: false});
|
||||
input.typeahead({hint: true, highlight: true,}, {source: transactions, displayKey: 'name', autoSelect: false});
|
||||
|
||||
input.change(function () {
|
||||
var current = input.typeahead("getActive");
|
||||
|
||||
Reference in New Issue
Block a user