From 3cd4ae73bc589809fb95a7740ec6e2f613d140b2 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Thu, 18 Oct 2007 04:31:25 +0000 Subject: [PATCH] #1489 - Removing one comment via AJAX removes all comments from display git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1.1@43582 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/PageCommentInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/PageCommentInterface.js b/javascript/PageCommentInterface.js index 755520a0..14339d1b 100755 --- a/javascript/PageCommentInterface.js +++ b/javascript/PageCommentInterface.js @@ -121,7 +121,7 @@ PageCommentInterface.prototype = { * Ajax handler of moderation removal */ deleteComment: function() { - var __comment = this.parentNode.parentNode.parentNode.parentNode; + var __comment = this.parentNode.parentNode.parentNode; __comment.getElementsByTagName('span')[0].innerHTML = "Removing...";