Sometimes a bit of code just "feels good" and you know you got it right. 
The "Delete" button in the forum view, for example, which just got committed.
 We only display the button if we know we have permission to delete messages
in the current room, which is a permission indicated when we fetch the room.
 Confirmation of the delete is just a regular javascript confirm() box.  And
the actual delete operation is performed using an HTTP "DELETE" method, not
by a special Citadel server command, because we took the time to make everything
DAV and REST.  The DELETE operation is performed asynchronously, and whenever
it happens to return, the value is checked and the div containing the message
is blanked out. 
  
 This really felt good to implement. 
 

Reply via email to