Only one reply on /t/

This commit is contained in:
Nicolas Stepien 2011-06-20 00:59:43 +02:00
parent 6ef7559ea5
commit e0fe93d204
2 changed files with 2 additions and 2 deletions

View File

@ -576,7 +576,7 @@
return $.cache[pathname].abort();
case '-':
a.textContent = a.textContent.replace('-', '+');
num = g.BOARD === 'b' ? 3 : 5;
num = g.BOARD === 'b' ? 3 : g.BOARD === 't' ? 1 : 5;
table = $.x("following::br[@clear][1]/preceding::table[" + num + "]", a);
while ((prev = table.previousSibling) && (prev.nodeName === 'TABLE')) {
$.rm(prev);

View File

@ -400,7 +400,7 @@ expandThread =
when '-'
a.textContent = a.textContent.replace '-', '+'
#goddamit moot
num = if g.BOARD is 'b' then 3 else 5
num = if g.BOARD is 'b' then 3 else if g.BOARD is 't' then 1 else 5
table = $.x "following::br[@clear][1]/preceding::table[#{num}]", a
while (prev = table.previousSibling) and (prev.nodeName is 'TABLE')
$.rm prev