wp/wp-includes/js/comment-reply.js
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     1 
     1 var addComment = {
     2 addComment = {
       
     3 	moveForm : function(commId, parentId, respondId, postId) {
     2 	moveForm : function(commId, parentId, respondId, postId) {
     4 		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');
     3 		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');
     5 
     4 
     6 		if ( ! comm || ! respond || ! cancel || ! parent )
     5 		if ( ! comm || ! respond || ! cancel || ! parent )
     7 			return;
     6 			return;
    32 			temp.parentNode.insertBefore(respond, temp);
    31 			temp.parentNode.insertBefore(respond, temp);
    33 			temp.parentNode.removeChild(temp);
    32 			temp.parentNode.removeChild(temp);
    34 			this.style.display = 'none';
    33 			this.style.display = 'none';
    35 			this.onclick = null;
    34 			this.onclick = null;
    36 			return false;
    35 			return false;
    37 		}
    36 		};
    38 
    37 
    39 		try { t.I('comment').focus(); }
    38 		try { t.I('comment').focus(); }
    40 		catch(e) {}
    39 		catch(e) {}
    41 
    40 
    42 		return false;
    41 		return false;
    43 	},
    42 	},
    44 
    43 
    45 	I : function(e) {
    44 	I : function(e) {
    46 		return document.getElementById(e);
    45 		return document.getElementById(e);
    47 	}
    46 	}
    48 }
    47 };