From c989a14b640b25dcb595cbf96d2424e03b1e002b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 13 Sep 2011 16:35:21 -0400 Subject: [PATCH] oops ... there was no way to delete blog comments ... fixed that --- webcit/static/roomops.js | 14 ++++++++++++++ webcit/static/t/view_blog/comment.html | 5 ++++- webcit/static/t/view_message.html | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) 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 @@ [] [] - + [] ');">[] - + [] []

-- 2.30.2