Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fJS;
- jQuery(document).ready(function() {
- fJS = filterInit();
- });
- function filterInit() {
- var template, html = jQuery.trim(jQuery("#template").html());
- template = Mustache.compile(html);
- var view = function(c){
- c.uid = c.fk_id_user;
- c.cname = c.c_name;
- c.csurname = c.c_surname;
- c.ccountry = c.c_country;
- return template(c);
- };
- var settings = {
- filter_criteria: {
- cname: ['#name_list input:checkbox', 'c_name'],
- csurname: ['#surname_list input:checkbox ','c_surname'],
- ccountry: ['#country_list input:checkbox ','c_country']
- },
- search: {input: '#searchbox' },
- and_filter_on: false,
- };
- return FilterJS(coaches, "#list_coaches", view, settings);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement