Fixed attachment handler call
authorAlexander Ebert <ebert@woltlab.com>
Mon, 6 Jun 2016 12:10:11 +0000 (14:10 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 6 Jun 2016 15:21:57 +0000 (17:21 +0200)
com.woltlab.wcf/templates/messageFormAttachments.tpl
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js

index 2cd347a4e7bb5792d612e2daa53c5332a96e8860..dac4ff673580661e43e12e22df6790ca06ce0dac 100644 (file)
                        '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');
        });
        //]]>
index 02cae7b441844ac046ee77e8aff8b688ba538ce0..cbadfd294a14b4f0489151c5d6f4dba58e6be5b6 100644 (file)
@@ -53,4 +53,4 @@ $.Redactor.prototype.WoltLabAttachment = function() {
                        }
                }
        };
-};
\ No newline at end of file
+};