thread.op

This commit is contained in:
James Campos 2011-05-08 23:36:15 -07:00
parent 634cf32a6b
commit 594191091d

View File

@ -974,7 +974,7 @@ threading =
threading.thread node threading.thread node
$.unbind d, 'DOMNodeInserted', threading.stopPropagation $.unbind d, 'DOMNodeInserted', threading.stopPropagation
thread: (node) -> op: (node) ->
op = $.el 'div', op = $.el 'div',
className: 'op' className: 'op'
$.before node, op $.before node, op
@ -983,11 +983,13 @@ threading =
node = op.nextSibling node = op.nextSibling
$.append op, node #add the blockquote $.append op, node #add the blockquote
op.id = $('input[name]', op).name op.id = $('input[name]', op).name
op
thread: (node) ->
node = thread.op node
return if g.REPLY return if g.REPLY
node = op
div = $.el 'div', div = $.el 'div',
className: 'thread' className: 'thread'
$.before node, div $.before node, div