From: Art Cancro Date: Tue, 13 Sep 2011 20:35:21 +0000 (-0400) Subject: oops ... there was no way to delete blog comments ... fixed that X-Git-Tag: v8.01~35 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=45c969d788618c1eb6a126b7d3d4f43c8d04879b oops ... there was no way to delete blog comments ... fixed that --- diff --git a/webcit/static/roomops.js b/webcit/static/roomops.js index c4bc6585c..e91b386fe 100644 --- a/webcit/static/roomops.js +++ b/webcit/static/roomops.js @@ -76,3 +76,17 @@ function GetMailboxRooms() { } return roomsForFloor; } + +/* + * function to delete a comment from a blog post + */ +function DeleteBlogComment(msgnum) { + cmd = encodeURI("g_cmd=DELE " + msgnum); + new Ajax.Request("ajax_servcmd", { + parameters: cmd, + method: 'post', + onSuccess: function(transport) { + Effect.BlindUp('blog_comment_' + msgnum); + } + }); +} diff --git a/webcit/static/t/view_blog/comment.html b/webcit/static/t/view_blog/comment.html index 8a24ee42e..a37fdc0e2 100644 --- a/webcit/static/t/view_blog/comment.html +++ b/webcit/static/t/view_blog/comment.html @@ -1,4 +1,4 @@ -
+
@@ -8,6 +8,9 @@ + + ')) { DeleteBlogComment(); }">[] +
diff --git a/webcit/static/t/view_message.html b/webcit/static/t/view_message.html index 0cbb281fe..ff63fa155 100644 --- a/webcit/static/t/view_message.html +++ b/webcit/static/t/view_message.html @@ -27,10 +27,10 @@ [] [] - + [] ');">[] - + [] []