This commit is contained in:
BoHung Chiu 2021-04-09 16:47:29 +08:00
parent b484a76768
commit f6fc71ac72
1 changed files with 2 additions and 3 deletions

View File

@ -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) {