ugh, compile js

This commit is contained in:
James Campos 2011-05-08 23:46:37 -07:00
parent 006ee8032f
commit 9607ecd871

View File

@ -741,7 +741,7 @@
} else { } else {
root = $('td.replyhl', thread) || thread; root = $('td.replyhl', thread) || thread;
thumb = $('img[md5]', root); thumb = $('img[md5]', root);
return imgExpand.toggle(thumb); return imgExpand.toggle(thumb.parentNode);
} }
}, },
qr: function(thread, quote) { qr: function(thread, quote) {
@ -1210,8 +1210,8 @@
threading.thread(node); threading.thread(node);
return $.unbind(d, 'DOMNodeInserted', threading.stopPropagation); return $.unbind(d, 'DOMNodeInserted', threading.stopPropagation);
}, },
thread: function(node) { op: function(node) {
var div, op; var op;
op = $.el('div', { op = $.el('div', {
className: 'op' className: 'op'
}); });
@ -1222,10 +1222,14 @@
} }
$.append(op, node); $.append(op, node);
op.id = $('input[name]', op).name; op.id = $('input[name]', op).name;
return op;
},
thread: function(node) {
var div;
node = thread.op(node);
if (g.REPLY) { if (g.REPLY) {
return; return;
} }
node = op;
div = $.el('div', { div = $.el('div', {
className: 'thread' className: 'thread'
}); });
@ -1718,7 +1722,7 @@
return ui.winHeight = d.body.clientHeight; return ui.winHeight = d.body.clientHeight;
}, },
parse: function(req, id, threadID) { parse: function(req, id, threadID) {
var body, html, qp, reply, _i, _len, _ref; var body, html, op, qp, reply, _i, _len, _ref;
qp = $('#qp'); qp = $('#qp');
if (qp.innerHTML !== ("Loading " + id + "...")) { if (qp.innerHTML !== ("Loading " + id + "...")) {
return; return;
@ -1731,8 +1735,8 @@
innerHTML: req.responseText innerHTML: req.responseText
}); });
if (id === threadID) { if (id === threadID) {
threading.thread($('form[name=delform] > *', body)); op = threading.op($('form[name=delform] > *', body));
html = $('.op', body).innerHTML; html = op.innerHTML;
} else { } else {
_ref = $$('td.reply', body); _ref = $$('td.reply', body);
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {