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; 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)) { if (el = d.getElementById(id)) {
inline = quoteInline.table(id, el.innerHTML); inline = quoteInline.table(id, el.innerHTML);
if (this.className === 'backlink') { if (this.className === 'backlink') {

View File

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

View File

@ -1606,7 +1606,7 @@ quoteInline =
for inlined in $$ 'input', table for inlined in $$ 'input', table
$.show $.x 'ancestor::table[1]', d.getElementById inlined.name $.show $.x 'ancestor::table[1]', d.getElementById inlined.name
return 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 if el = d.getElementById id
inline = quoteInline.table id, el.innerHTML inline = quoteInline.table id, el.innerHTML
if @className is 'backlink' if @className is 'backlink'