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