Small JS issue. [skip ci]

This commit is contained in:
James Cole 2017-01-15 20:18:32 +01:00
parent 6b7a47ca28
commit 1e69a54972
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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});
});
});