Fix thread expansion URL

This commit is contained in:
Zixaphir 2014-04-06 11:52:20 -07:00
parent 7818dec073
commit 44350c5f76
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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