Fix thread expansion URL
This commit is contained in:
parent
7818dec073
commit
44350c5f76
@ -11417,7 +11417,7 @@
|
||||
}
|
||||
a = $.el('a', {
|
||||
textContent: ExpandThread.text.apply(ExpandThread, ['+'].concat(__slice.call(summary.textContent.match(/\d+/g)))),
|
||||
href: "" + thread.board.ID + "/res/" + thread.ID,
|
||||
href: "res/" + thread.ID,
|
||||
className: 'summary'
|
||||
});
|
||||
$.on(a, 'click', ExpandThread.cbToggle);
|
||||
|
||||
@ -11433,7 +11433,7 @@
|
||||
}
|
||||
a = $.el('a', {
|
||||
textContent: ExpandThread.text.apply(ExpandThread, ['+'].concat(__slice.call(summary.textContent.match(/\d+/g)))),
|
||||
href: "" + thread.board.ID + "/res/" + thread.ID,
|
||||
href: "res/" + thread.ID,
|
||||
className: 'summary'
|
||||
});
|
||||
$.on(a, 'click', ExpandThread.cbToggle);
|
||||
|
||||
@ -8,7 +8,7 @@ ExpandThread =
|
||||
return unless summary = $.x 'following-sibling::*[contains(@class,"summary")][1]', thread.OP.nodes.root
|
||||
a = $.el 'a',
|
||||
textContent: ExpandThread.text '+', summary.textContent.match(/\d+/g)...
|
||||
href: "#{thread.board.ID}/res/#{thread.ID}"
|
||||
href: "res/#{thread.ID}"
|
||||
className: 'summary'
|
||||
$.on a, 'click', ExpandThread.cbToggle
|
||||
$.replace summary, a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user