New code by @vissert that allows category edit (see #282)

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-09-03 05:01:48 +02:00
parent 29af4bd1b9
commit 8c7ef49eb6
3 changed files with 19 additions and 10 deletions

View File

@@ -81,9 +81,13 @@ $(document).ready(function () {
}
// also for multi input:
if ($('input[name="category[]"]').length > 0) {
if ($('input[name^="category["]').length > 0) {
$.getJSON('json/categories').done(function (data) {
$('input[name="category[]"]').typeahead({source: data});
$('input[name^="category["]').typeahead({source: data});
});
}
});