From d81317252e8977b8fb3d054d1c3c2e6d5bc1d75f Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 12 Aug 2007 23:37:29 +0000 Subject: [PATCH] Fix comment ajax git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39892 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/PageCommentInterface.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/PageCommentInterface.js b/javascript/PageCommentInterface.js index 7e4250e2..b35fe99b 100755 --- a/javascript/PageCommentInterface.js +++ b/javascript/PageCommentInterface.js @@ -86,7 +86,7 @@ PageCommentInterface.prototype = { * Ajax handler of moderation removal */ deleteComment: function() { - var __comment = this.parentNode.parentNode.parentNode; + var __comment = this.parentNode.parentNode.parentNode.parentNode; __comment.getElementsByTagName('span')[0].innerHTML = "Removing..."; @@ -120,7 +120,7 @@ PageCommentInterface.prototype = { * Ajax handler of spam reporting */ reportSpam: function() { - var __comment = this.parentNode.parentNode.parentNode; + var __comment = this.parentNode.parentNode.parentNode.parentNode; __comment.getElementsByTagName('span')[0].innerHTML = "Reporting spam..."; @@ -162,7 +162,7 @@ PageCommentInterface.prototype = { * Ajax handler of ham reporting */ reportHam: function() { - var __comment = this.parentNode.parentNode.parentNode; + var __comment = this.parentNode.parentNode.parentNode.parentNode; __comment.getElementsByTagName('span')[0].innerHTML = "Reporting as not spam..."; @@ -189,7 +189,7 @@ PageCommentInterface.prototype = { * Ajax handler of ham reporting */ approveComment: function() { - var __comment = this.parentNode.parentNode.parentNode; + var __comment = this.parentNode.parentNode.parentNode.parentNode; __comment.getElementsByTagName('span')[0].innerHTML = "Marking comment as approved...";