oops ... there was no way to delete blog comments ... fixed that
[citadel.git] / webcit / static / roomops.js
index 4af01682116eebc270d2020db2363d46ac2bd8db..e91b386fea6fdae23058a8202bec79268e3fd5e4 100644 (file)
@@ -41,7 +41,7 @@ var VIEW_CALBRIEF = 7;
 var VIEW_JOURNAL = 8;
 
 function FillRooms(callback) {
-  var roomFlr = new Ajax.Request("json_roomflr", {method: 'get', onSuccess: function(transport) { ProcessRoomFlr(transport); callback.call(); }});
+  var roomFlr = new Ajax.Request("json_roomflr?SortBy=byfloorroom?SortOrder=1", {method: 'get', onSuccess: function(transport) { ProcessRoomFlr(transport); callback.call(); }});
 }
 function ProcessRoomFlr(transport) {
   var data = eval('('+transport.responseText+')');
@@ -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);
+               }
+       });
+}