#1489 - Removing one comment via AJAX removes all comments from display (merged from 2.1.1, r43584)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44206 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-04 21:42:37 +00:00
parent c6684fa6c6
commit 7a564c5154

View File

@ -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...";