Show More
@@ -373,18 +373,17 var q_filter = function(target,nodes,dis | |||||
373 | }; |
|
373 | }; | |
374 |
|
374 | |||
375 | var tableTr = function(cls, body){ |
|
375 | var tableTr = function(cls, body){ | |
376 |
var _el = document.createElement(' |
|
376 | var _el = document.createElement('div'); | |
377 |
|
||||
378 | var cont = new YAHOO.util.Element(body); |
|
377 | var cont = new YAHOO.util.Element(body); | |
379 | var comment_id = fromHTML(body).children[0].id.split('comment-')[1]; |
|
378 | var comment_id = fromHTML(body).children[0].id.split('comment-')[1]; | |
380 | var id = 'comment-tr-{0}'.format(comment_id); |
|
379 | var id = 'comment-tr-{0}'.format(comment_id); | |
381 | var _html = ('tbody><tr id="{0}" class="{1}">'+ |
|
380 | var _html = ('<table><tbody><tr id="{0}" class="{1}">'+ | |
382 | '<td class="lineno-inline new-inline"></td>'+ |
|
381 | '<td class="lineno-inline new-inline"></td>'+ | |
383 | '<td class="lineno-inline old-inline"></td>'+ |
|
382 | '<td class="lineno-inline old-inline"></td>'+ | |
384 | '<td>{2}</td>'+ |
|
383 | '<td>{2}</td>'+ | |
385 | '</tr>').format(id, cls, body); |
|
384 | '</tr></tbody></table>').format(id, cls, body); | |
386 | _el.innerHTML = _html; |
|
385 | _el.innerHTML = _html; | |
387 | return _el.children[0].children[0]; |
|
386 | return _el.children[0].children[0].children[0]; | |
388 | }; |
|
387 | }; | |
389 |
|
388 | |||
390 | /** comments **/ |
|
389 | /** comments **/ | |
@@ -445,13 +444,11 var injectInlineForm = function(tr){ | |||||
445 | } |
|
444 | } | |
446 | } |
|
445 | } | |
447 | YUD.insertAfter(form,parent); |
|
446 | YUD.insertAfter(form,parent); | |
448 |
|
||||
449 | var f = YUD.get(form); |
|
447 | var f = YUD.get(form); | |
450 |
|
||||
451 | var overlay = YUD.getElementsByClassName('overlay',null,f)[0]; |
|
448 | var overlay = YUD.getElementsByClassName('overlay',null,f)[0]; | |
452 | var _form = YUD.getElementsByClassName('inline-form',null,f)[0]; |
|
449 | var _form = YUD.getElementsByClassName('inline-form',null,f)[0]; | |
453 |
|
450 | |||
454 |
|
|
451 | YUE.on(YUD.get(_form), 'submit',function(e){ | |
455 | YUE.preventDefault(e); |
|
452 | YUE.preventDefault(e); | |
456 |
|
453 | |||
457 | //ajax submit |
|
454 | //ajax submit |
General Comments 0
You need to be logged in to leave comments.
Login now