diff --git a/app/assets/javascripts/bulletin/wpex.min.js b/app/assets/javascripts/bulletin/wpex.min.js index e809ff1..bbe274e 100644 --- a/app/assets/javascripts/bulletin/wpex.min.js +++ b/app/assets/javascripts/bulletin/wpex.min.js @@ -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) {