diff --git a/4chan_x.js b/4chan_x.js index 6ca55ab67..6e0015bc8 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1746,16 +1746,15 @@ }, parse: function(req, id, threadID, oldInline) { var body, html, inline, op, reply, td, _i, _len, _ref; + if (req.status !== 200) { + oldInline.innerHTML = "" + req.status + " " + req.statusText; + return; + } inline = $.el('table', { className: 'inline', innerHTML: '' }); td = $('td', inline); - if (req.status !== 200) { - td.innerHTML = "" + req.status + " " + req.statusText; - $.replace(oldInline, inline); - return; - } body = $.el('body', { innerHTML: req.responseText }); diff --git a/script.coffee b/script.coffee index 6b118a3bf..11b86accf 100644 --- a/script.coffee +++ b/script.coffee @@ -1387,17 +1387,16 @@ quoteInline = g.requests[threadID] = $.get @href, (-> quoteInline.parse this, id, threadID, inline) $.after @parentNode, inline parse: (req, id, threadID, oldInline) -> + if req.status isnt 200 + oldInline.innerHTML = "#{req.status} #{req.statusText}" + return + #this is fucking stupid inline = $.el 'table', className: 'inline' innerHTML: '' td = $ 'td', inline - if req.status isnt 200 - td.innerHTML = "#{req.status} #{req.statusText}" - $.replace oldInline, inline - return - body = $.el 'body', innerHTML: req.responseText if id == threadID #OP