Fix #617.
This commit is contained in:
parent
89431fa321
commit
d2a68c2be0
@ -1062,7 +1062,7 @@
|
|||||||
}
|
}
|
||||||
num += $$('.opContainer ~ .replyContainer', thread).length;
|
num += $$('.opContainer ~ .replyContainer', thread).length;
|
||||||
text = num === 1 ? '1 reply' : "" + num + " replies";
|
text = num === 1 ? '1 reply' : "" + num + " replies";
|
||||||
opInfo = $('.op > .postInfo > .nameBlock', thread).textContent;
|
opInfo = $('.desktop > .nameBlock', thread).textContent;
|
||||||
stub = $.el('div', {
|
stub = $.el('div', {
|
||||||
className: 'hide_thread_button hidden_thread',
|
className: 'hide_thread_button hidden_thread',
|
||||||
innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>'
|
innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>'
|
||||||
@ -1148,7 +1148,7 @@
|
|||||||
});
|
});
|
||||||
a = stub.firstChild;
|
a = stub.firstChild;
|
||||||
$.on(a, 'click', ReplyHiding.toggle);
|
$.on(a, 'click', ReplyHiding.toggle);
|
||||||
$.add(a, $.tn($('.nameBlock', el).textContent));
|
$.add(a, $.tn($('.desktop > .nameBlock', el).textContent));
|
||||||
if (Conf['Menu']) {
|
if (Conf['Menu']) {
|
||||||
menuButton = Menu.a.cloneNode(true);
|
menuButton = Menu.a.cloneNode(true);
|
||||||
$.on(menuButton, 'click', Menu.toggle);
|
$.on(menuButton, 'click', Menu.toggle);
|
||||||
|
|||||||
@ -853,7 +853,7 @@ ThreadHiding =
|
|||||||
num = Number span.textContent.match /\d+/
|
num = Number span.textContent.match /\d+/
|
||||||
num += $$('.opContainer ~ .replyContainer', thread).length
|
num += $$('.opContainer ~ .replyContainer', thread).length
|
||||||
text = if num is 1 then '1 reply' else "#{num} replies"
|
text = if num is 1 then '1 reply' else "#{num} replies"
|
||||||
opInfo = $('.op > .postInfo > .nameBlock', thread).textContent
|
opInfo = $('.desktop > .nameBlock', thread).textContent
|
||||||
|
|
||||||
stub = $.el 'div',
|
stub = $.el 'div',
|
||||||
className: 'hide_thread_button hidden_thread'
|
className: 'hide_thread_button hidden_thread'
|
||||||
@ -918,7 +918,7 @@ ReplyHiding =
|
|||||||
innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>'
|
innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>'
|
||||||
a = stub.firstChild
|
a = stub.firstChild
|
||||||
$.on a, 'click', ReplyHiding.toggle
|
$.on a, 'click', ReplyHiding.toggle
|
||||||
$.add a, $.tn $('.nameBlock', el).textContent
|
$.add a, $.tn $('.desktop > .nameBlock', el).textContent
|
||||||
if Conf['Menu']
|
if Conf['Menu']
|
||||||
menuButton = Menu.a.cloneNode true
|
menuButton = Menu.a.cloneNode true
|
||||||
$.on menuButton, 'click', Menu.toggle
|
$.on menuButton, 'click', Menu.toggle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user