oops ... there was no way to delete blog comments ... fixed that
[citadel.git] / webcit / static / roomops.js
index c4bc6585ca0d2b8b302aa57fbc02d79e989f557a..e91b386fea6fdae23058a8202bec79268e3fd5e4 100644 (file)
@@ -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);
+               }
+       });
+}