Try to fix the problem in tag filtering reported by Tyler. re #125

This commit is contained in:
Sébastien Lucas 2013-12-12 21:52:20 +01:00
parent 31d2c69341
commit 0130e33c82

View file

@ -147,7 +147,7 @@ function updateFilters () {
for (var tag in tagList) { for (var tag in tagList) {
var tagValue = tagList [tag]; var tagValue = tagList [tag];
if (tagValue === -1) { if (tagValue === -1) {
$("#filter ul li:contains('" + tag + "')").remove(); $("#filter ul li").filter (function () { return $.text([this]) === tag; }).remove();
} }
if (tagValue === 1) { if (tagValue === 1) {
$("#filter ul").append ("<li>" + tag + "</li>"); $("#filter ul").append ("<li>" + tag + "</li>");