Вход Регистрация
Файл: wordpress/wp-includes/js/comment-reply.js
Строк: 65
<?php
var addComment = {
    
moveForm : function(commIdparentIdrespondIdpostId) {
        var 
thisdivcomm 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');

        if ( ! 
comm || ! respond || ! cancel || ! parent )
            return;

        
t.respondId respondId;
        
postId postId || false;

        if ( ! 
t.I('wp-temp-form-div') ) {
            
div document.createElement('div');
            
div.id 'wp-temp-form-div';
            
div.style.display 'none';
            
respond.parentNode.insertBefore(divrespond);
        }

        
comm.parentNode.insertBefore(respondcomm.nextSibling);
        if ( 
post && postId )
            
post.value postId;
        
parent.value parentId;
        
cancel.style.display '';

        
cancel.onclick = function() {
            var 
addCommenttemp t.I('wp-temp-form-div'), respond t.I(t.respondId);

            if ( ! 
temp || ! respond )
                return;

            
t.I('comment_parent').value '0';
            
temp.parentNode.insertBefore(respondtemp);
            
temp.parentNode.removeChild(temp);
            
this.style.display 'none';
            
this.onclick null;
            return 
false;
        };

        try { 
t.I('comment').focus(); }
        catch(
e) {}

        return 
false;
    },

    
: function(e) {
        return 
document.getElementById(e);
    }
};
?>
Онлайн: 2
Реклама