Merge pull request #122 from MayhemYDG/master

Feedback for cross quotes too.
This commit is contained in:
James Campos 2011-05-22 12:10:17 -07:00
commit 696bb15b36
2 changed files with 4 additions and 4 deletions

View File

@ -1766,7 +1766,6 @@
} else {
$.after(this.parentNode, inline);
}
return $.addClass(this, 'inlined');
} else {
inline = $.el('td', {
className: 'reply inline',
@ -1777,14 +1776,15 @@
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]/div', this).id;
if (req = g.requests[threadID]) {
if (req.readyState === 4) {
return quoteInline.parse(req, id, threadID, inline);
quoteInline.parse(req, id, threadID, inline);
}
} else {
return g.requests[threadID] = $.get(this.href, (function() {
g.requests[threadID] = $.get(this.href, (function() {
return quoteInline.parse(this, id, threadID, inline);
}));
}
}
return $.addClass(this, 'inlined');
},
parse: function(req, id, threadID, inline) {
var body, html, newInline, op, reply, _i, _len, _ref;

View File

@ -1413,7 +1413,6 @@ quoteInline =
$.hide $.x 'ancestor::table[1]', el
else
$.after @parentNode, inline
$.addClass @, 'inlined'
else
inline = $.el 'td',
className: 'reply inline'
@ -1428,6 +1427,7 @@ quoteInline =
else
#FIXME need an array of callbacks
g.requests[threadID] = $.get @href, (-> quoteInline.parse @, id, threadID, inline)
$.addClass @, 'inlined'
parse: (req, id, threadID, inline) ->
if req.status isnt 200
inline.innerHTML = "#{req.status} #{req.statusText}"