fix clicking tags when already filtered

This commit is contained in:
mappu 2014-05-10 15:14:10 +12:00
parent 84d24471b2
commit 542453939e
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@
};
var show_tag = function(tag) {
if (document.querySelector(".tag-filter-warn") !== null) {
show_all();
}
var tr = document.querySelectorAll(".projtable tr");
for (var i = 0, e = tr.length; i !== e; ++i) {
tr[i].style.display = (tr[i].className.split(" ").indexOf("taggedWith-"+tag) === -1) ? "none" : "table-row";