Fix no.id within crossquotes. close #258

This commit is contained in:
Nicolas Stepien 2011-09-01 03:15:58 +02:00
parent 438f12155e
commit 57c9e09010
3 changed files with 10 additions and 1 deletions

View File

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

View File

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

View File

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