Un-expanding stickies only have 1 replies on the index.

This commit is contained in:
Nicolas Stepien 2013-02-23 01:23:51 +01:00
parent ca265fc7a1
commit 7d9172d55d
2 changed files with 16 additions and 10 deletions

View File

@ -4835,15 +4835,19 @@
a.textContent = text.replace('-', '+');
ExpandComment.contract(thread.OP);
num = (function() {
switch (g.BOARD) {
case 'b':
case 'vg':
case 'q':
return 3;
case 't':
return 1;
default:
return 5;
if (thread.isSticky) {
return 1;
} else {
switch (g.BOARD) {
case 'b':
case 'vg':
case 'q':
return 3;
case 't':
return 1;
default:
return 5;
}
}
})();
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);

View File

@ -3212,7 +3212,9 @@ ExpandThread =
a.textContent = text.replace '-', '+'
ExpandComment.contract thread.OP
#goddamit moot
num = switch g.BOARD
num = if thread.isSticky
1
else switch g.BOARD
# XXX boards config
when 'b', 'vg', 'q' then 3
when 't' then 1