From f6fc71ac720b70c627517ccfe253e1630cdd605d Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 9 Apr 2021 16:47:29 +0800 Subject: [PATCH] Fix bug. --- app/assets/javascripts/bulletin/wpex.min.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {