-
+ E1A4268ED180AC629186D81A8332654EE1FD8C00607BED755E0FED3EFD23C512329ADD23E16C6A12D5B23B1D66F6370D7DFBBFE5B482A872C0FE9DFCDC203C20
mp-wp/wp-includes/js/comment-reply.js
(0 . 0)(1 . 48)
100288
100289 addComment = {
100290 moveForm : function(commId, parentId, respondId, postId) {
100291 var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
100292
100293 if ( ! comm || ! respond || ! cancel || ! parent )
100294 return;
100295
100296 t.respondId = respondId;
100297 postId = postId || false;
100298
100299 if ( ! t.I('wp-temp-form-div') ) {
100300 div = document.createElement('div');
100301 div.id = 'wp-temp-form-div';
100302 div.style.display = 'none';
100303 respond.parentNode.insertBefore(div, respond);
100304 }
100305
100306 comm.parentNode.insertBefore(respond, comm.nextSibling);
100307 if ( post && postId )
100308 post.value = postId;
100309 parent.value = parentId;
100310 cancel.style.display = '';
100311
100312 cancel.onclick = function() {
100313 var t = addComment, temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId);
100314
100315 if ( ! temp || ! respond )
100316 return;
100317
100318 t.I('comment_parent').value = '0';
100319 temp.parentNode.insertBefore(respond, temp);
100320 temp.parentNode.removeChild(temp);
100321 this.style.display = 'none';
100322 this.onclick = null;
100323 return false;
100324 }
100325
100326 try { t.I('comment').focus(); }
100327 catch(e) {}
100328
100329 return false;
100330 },
100331
100332 I : function(e) {
100333 return document.getElementById(e);
100334 }
100335 }