Fix no.id within crossquotes. close #258
This commit is contained in:
parent
438f12155e
commit
57c9e09010
@ -2231,7 +2231,7 @@
|
||||
return $.addClass(this, 'inlined');
|
||||
},
|
||||
parse: function(req, pathname, id, threadID, inline) {
|
||||
var body, html, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
||||
var body, html, link, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
||||
if (!inline.parentNode) {
|
||||
return;
|
||||
}
|
||||
@ -2263,6 +2263,9 @@
|
||||
quote.pathname = pathname;
|
||||
}
|
||||
}
|
||||
link = $('a.quotejs', newInline);
|
||||
link.href = "" + pathname + "#" + id;
|
||||
link.nextSibling.href = "" + pathname + "#q" + id;
|
||||
$.addClass(newInline, 'crossquote');
|
||||
return $.replace(inline, newInline);
|
||||
},
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
master
|
||||
|
||||
2.19.1
|
||||
- mayhem
|
||||
fix OP indication in expanded comments
|
||||
fix no.id links within cross thread/board inlined quote
|
||||
|
||||
2.19.0
|
||||
- mayhem
|
||||
|
||||
@ -1778,6 +1778,9 @@ quoteInline =
|
||||
for quote in $$ 'a.quotelink', newInline
|
||||
if quote.getAttribute('href') is quote.hash
|
||||
quote.pathname = pathname
|
||||
link = $ 'a.quotejs', newInline
|
||||
link.href = "#{pathname}##{id}"
|
||||
link.nextSibling.href = "#{pathname}#q#{id}"
|
||||
$.addClass newInline, 'crossquote'
|
||||
$.replace inline, newInline
|
||||
table: (id, html) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user