Append filters instead of replacing value for users and categories dropdowns

This commit is contained in:
Frederic Guillot
2015-09-26 21:48:48 -04:00
parent 66514aa530
commit 58c74b80d2
5 changed files with 13 additions and 8 deletions

View File

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