remove typed in text after copying the reply form.
svn path=/plone.app.discussion/trunk/; revision=27472
This commit is contained in:
parent
3d4343440c
commit
adb3a6d9be
@ -21,7 +21,6 @@ function createReplyToCommentForm(comment_id) {
|
||||
*/
|
||||
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. */
|
||||
@ -47,6 +46,13 @@ function createReplyToCommentForm(comment_id) {
|
||||
cancel_reply_button = reply_div.find(".cancelreplytocomment");
|
||||
cancel_reply_button.attr("onclick", "removeReplyToCommentForm(" + comment_id +");")
|
||||
|
||||
/* Remove already typed in text from the reply form. */
|
||||
reply_form.find(".field").find("input").attr("value", "")
|
||||
reply_form.find(".field").find("textarea").attr("value", "")
|
||||
|
||||
/* Show the reply layer with a slide down effect */
|
||||
reply_div.slideDown("slow");
|
||||
|
||||
/* Show the cancel button in the reply-to-comment form */
|
||||
cancel_reply_button.css("display", "inline")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user