remove attach works now but has filename escape bugs
authorArt Cancro <ajc@citadel.org>
Mon, 13 Dec 2010 05:02:22 +0000 (00:02 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 13 Dec 2010 05:02:22 +0000 (00:02 -0500)
webcit/static/t/edit_message.html

index 059b96c0b221ed49a7e806a4d9e5ea4cc23a86aa..e4ecc57fb5e51471146b5fd1dc2ab8e0b63ae954 100644 (file)
        }
 
        function remove_attachment(which_one) {
-               alert('FIXME ' + which_one);
+               p = 'which_attachment=' + which_one + '&r=' + CtdlRandomString();
+               new Ajax.Updater(
+                       'gonna_upload_this',
+                       'remove_attachment',
+                       {
+                               method: 'get',
+                               parameters: p,
+                               onComplete: function(){
+                                       show_attachments_form();
+                                       update_attachment_count();
+                               }
+                       }
+               );
        }
 
 </script>