Fix >>>/board/id still displayed as filtered after unhiding its linked post.

This commit is contained in:
Nicolas Stepien 2012-03-17 13:18:32 +01:00
parent ed3cc48d3f
commit 8bc82be677
2 changed files with 3 additions and 3 deletions

View File

@ -905,7 +905,7 @@
table.hidden = false;
$.rm(parent);
id = table.firstChild.firstChild.lastChild.id;
_ref2 = $$(".quotelink[href='#" + id + "'], .backlink[href='#" + id + "']");
_ref2 = $$(".quotelink[href$='#" + id + "'], .backlink[href='#" + id + "']");
for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
quote = _ref2[_j];
$.removeClass(quote, 'filtered');

View File

@ -524,7 +524,7 @@ Filter =
node: (post) ->
return if post.isInlined
post.isOP = post.class is 'op'
post.isOP = post.class is 'op'
{isOP, el} = post
for key of Filter.filters
value = Filter[key] post
@ -769,7 +769,7 @@ ReplyHiding =
table.hidden = false
$.rm parent
id = table.firstChild.firstChild.lastChild.id
for quote in $$ ".quotelink[href='##{id}'], .backlink[href='##{id}']"
for quote in $$ ".quotelink[href$='##{id}'], .backlink[href='##{id}']"
$.removeClass quote, 'filtered'
delete g.hiddenReplies[id]
$.set "hiddenReplies/#{g.BOARD}/", g.hiddenReplies