Fix OP indication in expanded comments, close #254

This commit is contained in:
Nicolas Stepien 2011-09-01 02:40:36 +02:00
parent 0a6e76cb36
commit 438f12155e
3 changed files with 7 additions and 0 deletions

View File

@ -569,6 +569,9 @@
if (quote.getAttribute('href') === quote.hash) {
quote.pathname = "/" + g.BOARD + "/res/" + threadID;
}
if (quote.hash.slice(1) === threadID) {
quote.innerHTML += ' (OP)';
}
if (conf['Quote Preview']) {
$.bind(quote, 'mouseover', quotePreview.mouseover);
$.bind(quote, 'mousemove', ui.hover);

View File

@ -1,4 +1,6 @@
master
- mayhem
fix OP indication in expanded comments
2.19.0
- mayhem

View File

@ -407,6 +407,8 @@ expandComment =
for quote in $$ 'a.quotelink', bq
if quote.getAttribute('href') is quote.hash
quote.pathname = "/#{g.BOARD}/res/#{threadID}"
if quote.hash[1..] is threadID
quote.innerHTML += ' (OP)'
if conf['Quote Preview']
$.bind quote, 'mouseover', quotePreview.mouseover
$.bind quote, 'mousemove', ui.hover