From 854f98ebbe76163a503e65448653645271dcc161 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 5 Jun 2009 07:07:18 +0000 Subject: [PATCH] add slidedown effect when the reply-to-comment form is opened. svn path=/plone.app.discussion/trunk/; revision=27310 --- .../discussion/browser/javascripts/reply_to_comment_form.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/javascripts/reply_to_comment_form.js b/plone/app/discussion/browser/javascripts/reply_to_comment_form.js index 8e0aa4f..5703f6b 100644 --- a/plone/app/discussion/browser/javascripts/reply_to_comment_form.js +++ b/plone/app/discussion/browser/javascripts/reply_to_comment_form.js @@ -19,8 +19,9 @@ function createReplyToCommentForm(comment_id) { * the regular comment form and insert it after the reply button of the * current comment. */ - reply_div = jq("#commenting").clone(true); /* select the clone, not the original */ - reply_div.insertAfter(button, reply_div.show("slow")); + reply_div = jq("#commenting").clone(true); + reply_div.insertAfter(button).css("display", "none") + reply_div.slideDown("slow"); /* Remove id="reply" attribute, since we use it to uniquely the main reply form. */