Fix #1178 [skip ci]

This commit is contained in:
James Cole 2018-02-19 20:17:37 +01:00
parent cae4faad0a
commit 9f63dfb9cb
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -47,17 +47,22 @@ function runModernizer() {
function setCommonAutocomplete() {
$.getJSON('json/tags').done(function (data) {
var opt = {
source: data,
afterSelect: function () {
this.$element.val("");
typeahead: {
source: data,
afterSelect: function () {
this.$element.val("");
}
},
autoSelect: false,
};
$('input[name="tags"]').tagsinput(
opt
);
});
if ($('input[name="destination_account_name"]').length > 0) {
$.getJSON('json/expense-accounts').done(function (data) {
$('input[name="destination_account_name"]').typeahead({source: data, autoSelect: false});