Skip to content

Firefly III: a personal finances manager

Fix #1178 [skip ci]

James Cole9f63dfb9cba8
diff --git a/public/js/ff/transactions/single/common.js b/public/js/ff/transactions/single/common.js
index 67fd6a6f87..16980dd300 100644
--- a/public/js/ff/transactions/single/common.js
+++ b/public/js/ff/transactions/single/common.js
@@ -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});