Fix Quote Inlining when the quote is at the end of the last line, after some text.

This commit is contained in:
Nicolas Stepien 2011-07-20 06:26:03 +02:00
parent 6a1985d6c3
commit e3c4b66918
3 changed files with 3 additions and 2 deletions

View File

@ -2055,7 +2055,7 @@
}
return;
}
root = this.parentNode.nodeName === 'FONT' ? this.parentNode : this.nextSibling;
root = this.parentNode.nodeName === 'FONT' ? this.parentNode : this.nextSibling ? this.nextSibling : this;
if (el = d.getElementById(id)) {
inline = quoteInline.table(id, el.innerHTML);
if (this.className === 'backlink') {

View File

@ -2,6 +2,7 @@ github
- mayhem:
- Thread Stats performance fix, especially on long threads
- Sauce performance improvement
- fix Quote Inlining for a pattern
- aeosynth:
- fix an upgrading problem (1.x -> 2.x)

View File

@ -1606,7 +1606,7 @@ quoteInline =
for inlined in $$ 'input', table
$.show $.x 'ancestor::table[1]', d.getElementById inlined.name
return
root = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling
root = if @parentNode.nodeName is 'FONT' then @parentNode else if @nextSibling then @nextSibling else @
if el = d.getElementById id
inline = quoteInline.table id, el.innerHTML
if @className is 'backlink'