fix #406, dupe stubs

This commit is contained in:
James Campos 2011-11-30 03:36:26 -08:00 committed by Nicolas Stepien
parent d92693a602
commit ec326e7557
2 changed files with 5 additions and 0 deletions

View File

@ -851,6 +851,7 @@
hideHide: function(reply) {
var a, div, name, table, trip, _ref;
table = reply.parentNode.parentNode.parentNode;
if (table.hidden) return;
table.hidden = true;
if (conf['Show Stubs']) {
name = $('.commentpostername', reply).textContent;
@ -1857,6 +1858,7 @@
hideHide: function(thread) {
var a, div, name, num, span, text, trip, _ref;
if (conf['Show Stubs']) {
if (/stub/.test(thread.className)) return;
if (span = $('.omittedposts', thread)) {
num = Number(span.textContent.match(/\d+/)[0]);
} else {

View File

@ -607,6 +607,8 @@ replyHiding =
hideHide: (reply) ->
table = reply.parentNode.parentNode.parentNode
return if table.hidden #already hidden by filter
table.hidden = true
if conf['Show Stubs']
@ -1460,6 +1462,7 @@ threadHiding =
hideHide: (thread) ->
if conf['Show Stubs']
return if /stub/.test thread.className #already hidden by filter
if span = $ '.omittedposts', thread
num = Number span.textContent.match(/\d+/)[0]
else