projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c31d501
)
remove attach works now but has filename escape bugs
author
Art Cancro
<ajc@citadel.org>
Mon, 13 Dec 2010 05:02:22 +0000
(
00:02
-0500)
committer
Art Cancro
<ajc@citadel.org>
Mon, 13 Dec 2010 05:02:22 +0000
(
00:02
-0500)
webcit/static/t/edit_message.html
patch
|
blob
|
history
diff --git
a/webcit/static/t/edit_message.html
b/webcit/static/t/edit_message.html
index 059b96c0b221ed49a7e806a4d9e5ea4cc23a86aa..e4ecc57fb5e51471146b5fd1dc2ab8e0b63ae954 100644
(file)
--- a/
webcit/static/t/edit_message.html
+++ b/
webcit/static/t/edit_message.html
@@
-190,7
+190,19
@@
}
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>