From 1e69a54972f9f3cac3f3f1901a54cf977311f6d3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 15 Jan 2017 20:18:32 +0100 Subject: [PATCH] Small JS issue. [skip ci] --- public/js/ff/transactions/single/edit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/ff/transactions/single/edit.js b/public/js/ff/transactions/single/edit.js index 9d0a8a9cbc..b141df5335 100644 --- a/public/js/ff/transactions/single/edit.js +++ b/public/js/ff/transactions/single/edit.js @@ -8,6 +8,8 @@ * See the LICENSE file for details. */ +/** global: what */ + $(document).ready(function () { "use strict"; // give date a datepicker if not natively supported. @@ -31,7 +33,7 @@ $(document).ready(function () { var opt = { typeahead: { source: data, - afterSelect: function (val) { + afterSelect: function () { this.$element.val(""); } } @@ -56,5 +58,5 @@ $(document).ready(function () { $.getJSON('json/categories').done(function (data) { $('input[name="category"]').typeahead({source: data}); }); - + });