mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-13 10:22:25 +00:00
Small JS issue. [skip ci]
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** global: what */
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
// give date a datepicker if not natively supported.
|
// give date a datepicker if not natively supported.
|
||||||
@@ -31,7 +33,7 @@ $(document).ready(function () {
|
|||||||
var opt = {
|
var opt = {
|
||||||
typeahead: {
|
typeahead: {
|
||||||
source: data,
|
source: data,
|
||||||
afterSelect: function (val) {
|
afterSelect: function () {
|
||||||
this.$element.val("");
|
this.$element.val("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,5 +58,5 @@ $(document).ready(function () {
|
|||||||
$.getJSON('json/categories').done(function (data) {
|
$.getJSON('json/categories').done(function (data) {
|
||||||
$('input[name="category"]').typeahead({source: data});
|
$('input[name="category"]').typeahead({source: data});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user