diff options
Diffstat (limited to 'assets/js/src/Search.js')
-rw-r--r-- | assets/js/src/Search.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/js/src/Search.js b/assets/js/src/Search.js index acacbaf9..1e7e294a 100644 --- a/assets/js/src/Search.js +++ b/assets/js/src/Search.js @@ -18,7 +18,13 @@ Search.prototype.listen = function() { // Filter helper for search $(document).on("click", ".filter-helper", function (e) { e.preventDefault(); + var filter = $(this).data("filter"); + var appendFilter = $(this).data("append-filter"); + + if (appendFilter) { + filter = $("#form-search").val() + " " + appendFilter; + } $("#form-search").val(filter); |