Fix quote inlining in some cases.
This commit is contained in:
parent
3dbd5e9815
commit
89d5abd696
@ -1783,10 +1783,11 @@
|
||||
return _results;
|
||||
},
|
||||
toggle: function(e) {
|
||||
var el, id, inline, pathname, root, table, threadID;
|
||||
var el, id, inline, link, pathname, root, table, threadID;
|
||||
e.preventDefault();
|
||||
id = this.hash.slice(1);
|
||||
root = $.x('ancestor::td[1]', this);
|
||||
link = this.parentNode.nodeName === 'FONT' ? this.parentNode : this.nextSibling;
|
||||
if (table = $("#i" + id, root)) {
|
||||
$.rm(table);
|
||||
$.removeClass(this, 'inlined');
|
||||
@ -1801,7 +1802,7 @@
|
||||
$.after(this.parentNode, inline);
|
||||
$.hide($.x('ancestor::table[1]', el));
|
||||
} else {
|
||||
$.after(this.parentNode, inline);
|
||||
$.after(link, inline);
|
||||
}
|
||||
} else {
|
||||
inline = $.el('td', {
|
||||
@ -1809,7 +1810,7 @@
|
||||
id: "i" + id,
|
||||
innerHTML: "Loading " + id + "..."
|
||||
});
|
||||
$.after(this.parentNode, inline);
|
||||
$.after(link, inline);
|
||||
pathname = this.pathname;
|
||||
threadID = pathname.split('/').pop();
|
||||
$.cache(pathname, (function() {
|
||||
|
||||
@ -1419,6 +1419,7 @@ quoteInline =
|
||||
e.preventDefault()
|
||||
id = @hash[1..]
|
||||
root = $.x 'ancestor::td[1]', @
|
||||
link = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling
|
||||
if table = $ "#i#{id}", root
|
||||
$.rm table
|
||||
$.removeClass @, 'inlined'
|
||||
@ -1431,13 +1432,13 @@ quoteInline =
|
||||
$.after @parentNode, inline
|
||||
$.hide $.x 'ancestor::table[1]', el
|
||||
else
|
||||
$.after @parentNode, inline
|
||||
$.after link, inline
|
||||
else
|
||||
inline = $.el 'td',
|
||||
className: 'reply inline'
|
||||
id: "i#{id}"
|
||||
innerHTML: "Loading #{id}..."
|
||||
$.after @parentNode, inline
|
||||
$.after link, inline
|
||||
{pathname} = @
|
||||
threadID = pathname.split('/').pop()
|
||||
$.cache pathname, (-> quoteInline.parse @, pathname, id, threadID, inline)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user