From 0ae6599973613850835803268a3400ade113fa3a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 6 Jun 2016 14:10:11 +0200 Subject: [PATCH] Fixed attachment handler call --- com.woltlab.wcf/templates/messageFormAttachments.tpl | 11 ++++++++++- .../3rdParty/redactor2/plugins/WoltLabAttachment.js | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/messageFormAttachments.tpl b/com.woltlab.wcf/templates/messageFormAttachments.tpl index 2cd347a4e7..dac4ff6735 100644 --- a/com.woltlab.wcf/templates/messageFormAttachments.tpl +++ b/com.woltlab.wcf/templates/messageFormAttachments.tpl @@ -55,7 +55,16 @@ 'wcf.attachment.delete.sure': '{lang}wcf.attachment.delete.sure{/lang}' }); - new WCF.Attachment.Upload($('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > dl > dd > div'), $('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > ul'), '{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}', '{@$attachmentParentObjectID}', {@$attachmentHandler->getMaxCount()}, '{@$wysiwygContainerID}'); + new WCF.Attachment.Upload( + $('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > dl > dd > div'), + $('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > ul'), + '{@$attachmentObjectType}', + '{@$attachmentObjectID}', + '{$tmpHash|encodeJS}', + '{@$attachmentParentObjectID}', + {@$attachmentHandler->getMaxCount()}, + '{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if}' + ); new WCF.Action.Delete('wcf\\data\\attachment\\AttachmentAction', '.formAttachmentList > li'); }); //]]> diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js index 02cae7b441..cbadfd294a 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js @@ -53,4 +53,4 @@ $.Redactor.prototype.WoltLabAttachment = function() { } } }; -}; \ No newline at end of file +}; -- 2.20.1