From 0fa4bbc9b660007fec073bf36d00bb9e7d0de309 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sat, 14 Sep 2013 23:45:34 +0200 Subject: [PATCH] Add first pieces of attachment upload Currently the upload is working, but it's impossible to delete the attachment or generate a "attachment message" --- file/js/be.bastelstu.Chat.litcoffee | 32 ++++++++++++++++++++++++++++- file/lib/page/ChatPage.class.php | 11 ++++++++++ template/chat.tpl | 19 ++++++++++++++++- template/javascriptInclude.tpl | 3 ++- 4 files changed, 62 insertions(+), 3 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index aaf448b..b4444e0 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -813,6 +813,34 @@ Remove the given callback from the given event. events[event].remove callback true + + if WCF?.Attachment?.Upload? + Attachment = WCF.Attachment.Upload.extend + init: -> + @_super $('#timsChatUploadContainer'), $('