diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt
index e4fdd6c..eee4e60 100644
--- a/plone/app/discussion/browser/comments.pt
+++ b/plone/app/discussion/browser/comments.pt
@@ -115,10 +115,11 @@
method="get"
style="display: inline;"
tal:repeat="action reply_dict/actions|nothing"
- tal:attributes="action string:${reply/absolute_url}/content_status_modify;
+ tal:attributes="action string:${reply/absolute_url}/@@moderate-publish-comment;
name action/id">
-
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 ab37c4f..091ae6e 100644
--- a/plone/app/discussion/browser/javascripts/reply_to_comment_form.js
+++ b/plone/app/discussion/browser/javascripts/reply_to_comment_form.js
@@ -99,4 +99,28 @@ jq(document).ready(function() {
},
});
});
+
+ /*****************************************************************
+ * Publish comment.
+ *****************************************************************/
+ jq("input[name='form.button.PublishComment']").click(function(e){
+ e.preventDefault();
+ var button = jq(this);
+ var form = jq(this).parent();
+ var target = jq(form).attr("action");
+ var comment = jq(form).parent()
+ jq.ajax({
+ type: "GET",
+ url: target,
+ success: function(msg){
+ // fade out row
+ jq(button).fadeOut("normal", function(){
+ jq(form).remove();
+ });
+ },
+ error: function(msg){
+ alert("Error sending AJAX request:" + target);
+ },
+ });
+ });
});
\ No newline at end of file