From 501cee78e22c9372524a01d64a44ecc48281b275 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 4 Nov 2010 14:50:30 +0000 Subject: [PATCH] ".comment" and ".replyTreeLevel0" are both CSS classes of the comment div. Fix for Plone 3 only. svn path=/plone.app.discussion/trunk/; revision=45189 --- plone/app/discussion/browser/javascripts/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/javascripts/comments.js b/plone/app/discussion/browser/javascripts/comments.js index e724701..7a0dd6e 100644 --- a/plone/app/discussion/browser/javascripts/comments.js +++ b/plone/app/discussion/browser/javascripts/comments.js @@ -179,7 +179,7 @@ url: form_url, context: $(trigger).parents(".comment"), success: function (data) { - if ($(".discussion .comment .replyTreeLevel0").length === 1) { + if ($(".discussion .replyTreeLevel0").length === 1) { $(".discussion").fadeOut('fast', function () { $(".discussion").remove(); });