Add filters helper for search form
This commit is contained in:
12
assets/js/src/filter.js
Normal file
12
assets/js/src/filter.js
Normal 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();
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user