Fix bug.
This commit is contained in:
parent
b484a76768
commit
f6fc71ac72
|
@ -2397,16 +2397,15 @@ var wpex = {};
|
|||
}else{
|
||||
if(window.wpexAnimsition.use_attr_filter){
|
||||
if(filter_constraint == "all"){
|
||||
filter_constraint = "["+window.wpexAnimsition.filter_attr+"]";
|
||||
filter_constraint = "["+filter_attr+"]";
|
||||
}else{
|
||||
filter_constraint = "["+window.wpexAnimsition.filter_attr+"=\""+filter_constraint+"\"]";
|
||||
filter_constraint = "["+filter_attr+(filter_attr[filter_attr.length-1] == "s" ? '*' : '')+"=\""+filter_constraint+"\"]";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(filterLink.data("count_limit") != undefined){
|
||||
filter_constraint = filter_constraint+":nth-child(-n+"+filterLink.data("count_limit")+")";
|
||||
}
|
||||
console.log(filter_constraint);
|
||||
return filter_constraint;
|
||||
}
|
||||
$(containers).each(function (i,v) {
|
||||
|
|
Loading…
Reference in New Issue