This commit is contained in:
Nicolas Stepien 2011-05-17 19:01:39 +02:00
parent 8b465172c7
commit cc8c0efb4d
2 changed files with 12 additions and 3 deletions

View File

@ -1738,7 +1738,11 @@
}
root = $.x('ancestor::td[1]', this);
if (td = $("#i" + id, root)) {
return $.rm(td);
$.rm($.x('ancestor::table[1]', td));
if (this.className === 'backlink') {
$.show($.x('ancestor::table[1]', d.getElementById(id)));
}
return;
}
inline = $.el('table', {
className: 'inline',
@ -1761,7 +1765,8 @@
}
}
if (this.className === 'backlink') {
return $.after($('td > br:first-of-type, td > a:last-of-type', this.parentNode), inline);
$.after($('td > br:first-of-type, td > a:last-of-type', this.parentNode), inline);
return $.hide($.x('ancestor::table[1]', el));
} else {
return $.after(this.parentNode, inline);
}

View File

@ -1389,7 +1389,10 @@ quoteInline =
return unless id = @hash[1..]
root = $.x 'ancestor::td[1]', this
if td = $ "#i#{id}", root
return $.rm td
$.rm $.x 'ancestor::table[1]', td
if @className is 'backlink'
$.show $.x 'ancestor::table[1]', d.getElementById id
return
inline = $.el 'table',
className: 'inline'
innerHTML: "<tbody><tr><td class=reply id=i#{id}></td></tr></tbody>"
@ -1409,6 +1412,7 @@ quoteInline =
g.requests[threadID] = $.get @href, (-> quoteInline.parse this, id, threadID, inline)
if @className is 'backlink'
$.after $('td > br:first-of-type, td > a:last-of-type', @parentNode), inline
$.hide $.x 'ancestor::table[1]', el
else
$.after @parentNode, inline
parse: (req, id, threadID, inline) ->