Commit bd7bfd6e authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

filters

parent 9038762b
......@@ -3119,10 +3119,14 @@ var directory = {
toolsSize=(searchObject.initType=="classifieds") ? "col-md-4 col-sm-6" : "col-md-3 col-sm-4";
headerFilters = "";
if(!custom.filters.searchFilters){
headerFilters = "<a href='javascript:;' data-filter='coop' class='btn-coopfilter btn btn-xs '>All</a> "+
"<a href='javascript:;' data-filter='up' class='btn-coopfilter btn btn-xs bg-green'>Pour</a> "+
"<a href='javascript:;' data-filter='down' class='btn-coopfilter btn btn-xs bg-red text-white'>Contre</a> ";
if( typeof custom.filters != 'undefined'
&& typeof custom.filters.searchFilters != 'undefined'){
$.each(custom.filters.searchFilters,function(k,p) {
colorClass = (typeof p.colorClass != "unde") ? p.colorClass : "";
headerFilters += "<a href='javascript:;' data-filter='"+k+"' class='btn-coopfilter btn btn-xs "+colorClass+"'> "+p.label+"</a> ";
});
}
headerStr +='<div class="col-xs-12 margin-bottom-10">'+
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment