projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attachments: implement browsing & deleting using fineuploader
[citadel.git]
/
webcit
/
static
/
t
/
edit
/
message
/
attachments_pane.html
diff --git
a/webcit/static/t/edit/message/attachments_pane.html
b/webcit/static/t/edit/message/attachments_pane.html
index b74ce35093087f01387b306694bab46f50827396..c2dc3a0f358f92446a4ef712426a23157dccc8fa 100644
(file)
--- a/
webcit/static/t/edit/message/attachments_pane.html
+++ b/
webcit/static/t/edit/message/attachments_pane.html
@@
-5,7
+5,6
@@
<?_("Close window")> <img src="static/webcit_icons/closewindow.gif" border="0"></div>
</a>
<h2><img src="static/webcit_icons/essen/16x16/attachement.png"> <?_("Attachments:")></h2>
<?_("Close window")> <img src="static/webcit_icons/closewindow.gif" border="0"></div>
</a>
<h2><img src="static/webcit_icons/essen/16x16/attachement.png"> <?_("Attachments:")></h2>
-<ul><?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")></ul>
<!-- Fine Uploader JS
====================================================================== -->
<!-- Fine Uploader JS
====================================================================== -->
@@
-15,9
+14,13
@@
function createUploader()
{
var uploader = new qq.FineUploader(
{
{
var uploader = new qq.FineUploader(
{
+ session: {
+ endpoint: "do_template?template=edit_message_json_attlist"
+ },
callbacks: {
callbacks: {
- "onComplete": update_attachment_count,
- "delete": update_attachment_count
+ onComplete: update_attachment_count,
+ delete: update_attachment_count,
+ deleteComplete: update_attachment_count
},
element: document.getElementById('fine-uploader'),
request: {
},
element: document.getElementById('fine-uploader'),
request: {
@@
-26,7
+29,7
@@
function createUploader()
deleteFile: {
enabled: true,
forceConfirm: true,
deleteFile: {
enabled: true,
forceConfirm: true,
- endpoint: 'remove_attachment?nonce=<?NONCE>&template=edit_message_upl_att'
+ endpoint: 'remove_attachment?nonce=<?NONCE>&template=edit_message_upl_att
&which_attachment=
'
}
});
}
}
});
}