From: Alexander Ebert Date: Mon, 6 Jun 2016 12:10:11 +0000 (+0200) Subject: Fixed attachment handler call X-Git-Tag: 3.0.0_Beta_1~1517 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ae6599973613850835803268a3400ade113fa3a;p=GitHub%2FWoltLab%2FWCF.git Fixed attachment handler call --- 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 +};