Merge pull request #99 from MayhemYDG/master

Better position of inlined backquotes
This commit is contained in:
James Campos 2011-05-17 10:09:26 -07:00
commit f48f7fc6de
2 changed files with 2 additions and 4 deletions

View File

@ -1765,8 +1765,7 @@
} }
} }
if (this.className === 'backlink') { if (this.className === 'backlink') {
root = $('table, blockquote', root); $.after($('td > br:first-of-type, td > a:last-of-type', this.parentNode), inline);
$.before(root, inline);
return $.hide($.x('ancestor::table[1]', el)); return $.hide($.x('ancestor::table[1]', el));
} else { } else {
return $.after(this.parentNode, inline); return $.after(this.parentNode, inline);

View File

@ -1411,8 +1411,7 @@ quoteInline =
#FIXME need an array of callbacks #FIXME need an array of callbacks
g.requests[threadID] = $.get @href, (-> quoteInline.parse this, id, threadID, inline) g.requests[threadID] = $.get @href, (-> quoteInline.parse this, id, threadID, inline)
if @className is 'backlink' if @className is 'backlink'
root = $ 'table, blockquote', root $.after $('td > br:first-of-type, td > a:last-of-type', @parentNode), inline
$.before root, inline
$.hide $.x 'ancestor::table[1]', el $.hide $.x 'ancestor::table[1]', el
else else
$.after @parentNode, inline $.after @parentNode, inline