web/wp-includes/js/comment-reply.dev.js
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
--- a/web/wp-includes/js/comment-reply.dev.js	Tue Feb 02 14:45:47 2010 +0000
+++ b/web/wp-includes/js/comment-reply.dev.js	Tue Feb 02 15:44:16 2010 +0000
@@ -1,48 +1,48 @@
-
-addComment = {
-	moveForm : function(commId, parentId, respondId, postId) {
-		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');
-
-		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(div, respond);
-		}
-
-		comm.parentNode.insertBefore(respond, comm.nextSibling);
-		if ( post && postId )
-			post.value = postId;
-		parent.value = parentId;
-		cancel.style.display = '';
-
-		cancel.onclick = function() {
-			var t = addComment, temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId);
-
-			if ( ! temp || ! respond )
-				return;
-
-			t.I('comment_parent').value = '0';
-			temp.parentNode.insertBefore(respond, temp);
-			temp.parentNode.removeChild(temp);
-			this.style.display = 'none';
-			this.onclick = null;
-			return false;
-		}
-
-		try { t.I('comment').focus(); }
-		catch(e) {}
-
-		return false;
-	},
-
-	I : function(e) {
-		return document.getElementById(e);
-	}
-}
+
+addComment = {
+	moveForm : function(commId, parentId, respondId, postId) {
+		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');
+
+		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(div, respond);
+		}
+
+		comm.parentNode.insertBefore(respond, comm.nextSibling);
+		if ( post && postId )
+			post.value = postId;
+		parent.value = parentId;
+		cancel.style.display = '';
+
+		cancel.onclick = function() {
+			var t = addComment, temp = t.I('wp-temp-form-div'), respond = t.I(t.respondId);
+
+			if ( ! temp || ! respond )
+				return;
+
+			t.I('comment_parent').value = '0';
+			temp.parentNode.insertBefore(respond, temp);
+			temp.parentNode.removeChild(temp);
+			this.style.display = 'none';
+			this.onclick = null;
+			return false;
+		}
+
+		try { t.I('comment').focus(); }
+		catch(e) {}
+
+		return false;
+	},
+
+	I : function(e) {
+		return document.getElementById(e);
+	}
+}