Feedback for cross quotes too.
This commit is contained in:
parent
2d75eedc54
commit
8d92d91263
@ -1766,7 +1766,6 @@
|
|||||||
} else {
|
} else {
|
||||||
$.after(this.parentNode, inline);
|
$.after(this.parentNode, inline);
|
||||||
}
|
}
|
||||||
return $.addClass(this, 'inlined');
|
|
||||||
} else {
|
} else {
|
||||||
inline = $.el('td', {
|
inline = $.el('td', {
|
||||||
className: 'reply inline',
|
className: 'reply inline',
|
||||||
@ -1777,14 +1776,15 @@
|
|||||||
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]/div', this).id;
|
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]/div', this).id;
|
||||||
if (req = g.requests[threadID]) {
|
if (req = g.requests[threadID]) {
|
||||||
if (req.readyState === 4) {
|
if (req.readyState === 4) {
|
||||||
return quoteInline.parse(req, id, threadID, inline);
|
quoteInline.parse(req, id, threadID, inline);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return g.requests[threadID] = $.get(this.href, (function() {
|
g.requests[threadID] = $.get(this.href, (function() {
|
||||||
return quoteInline.parse(this, id, threadID, inline);
|
return quoteInline.parse(this, id, threadID, inline);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $.addClass(this, 'inlined');
|
||||||
},
|
},
|
||||||
parse: function(req, id, threadID, inline) {
|
parse: function(req, id, threadID, inline) {
|
||||||
var body, html, newInline, op, reply, _i, _len, _ref;
|
var body, html, newInline, op, reply, _i, _len, _ref;
|
||||||
|
|||||||
@ -1413,7 +1413,6 @@ quoteInline =
|
|||||||
$.hide $.x 'ancestor::table[1]', el
|
$.hide $.x 'ancestor::table[1]', el
|
||||||
else
|
else
|
||||||
$.after @parentNode, inline
|
$.after @parentNode, inline
|
||||||
$.addClass @, 'inlined'
|
|
||||||
else
|
else
|
||||||
inline = $.el 'td',
|
inline = $.el 'td',
|
||||||
className: 'reply inline'
|
className: 'reply inline'
|
||||||
@ -1428,6 +1427,7 @@ quoteInline =
|
|||||||
else
|
else
|
||||||
#FIXME need an array of callbacks
|
#FIXME need an array of callbacks
|
||||||
g.requests[threadID] = $.get @href, (-> quoteInline.parse @, id, threadID, inline)
|
g.requests[threadID] = $.get @href, (-> quoteInline.parse @, id, threadID, inline)
|
||||||
|
$.addClass @, 'inlined'
|
||||||
parse: (req, id, threadID, inline) ->
|
parse: (req, id, threadID, inline) ->
|
||||||
if req.status isnt 200
|
if req.status isnt 200
|
||||||
inline.innerHTML = "#{req.status} #{req.statusText}"
|
inline.innerHTML = "#{req.status} #{req.statusText}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user