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