Add filters helper for search form

This commit is contained in:
Frederic Guillot
2015-07-04 14:23:45 -04:00
parent b01eb12a6c
commit cf8aeea6af
10 changed files with 115 additions and 25 deletions

12
assets/js/src/filter.js Normal file
View File

@@ -0,0 +1,12 @@
(function() {
jQuery(document).ready(function() {
$(document).on("click", ".filter-helper", function (e) {
e.preventDefault();
$("#form-search").val($(this).data("filter"));
$("form.search").submit();
});
});
})();