From b288f3f7fb8ae56d622c9bfaedb6b2398268f323 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 21 Jun 2009 10:34:12 +0000 Subject: [PATCH] fix "Reply button is not working anymore when a reply was posted." Switch HTML anchor from "#comment-" to "#". svn path=/plone.app.discussion/trunk/; revision=27570 --- plone/app/discussion/browser/comments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 2ad3949..a831155 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -274,7 +274,10 @@ class ReplyToComment(BrowserView): new_re_id = replies.addComment(comment) # Redirect to comment (inside a content object page) - self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#comment-' + str(reply_to_comment_id)) + #self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#comment-' + str(reply_to_comment_id)) + # Todo: Temporarily remove the "#comment-" to fix a bug + # in CMFPlone/skins/plone_ecmascript/form_tabbing.js + self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#' + str(reply_to_comment_id)) class DeleteComment(BrowserView): """Delete a comment from a conversation