Fixed uploaded attachments not being recognized as image attachments
authorAlexander Ebert <ebert@woltlab.com>
Tue, 9 Sep 2014 11:56:44 +0000 (13:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 9 Sep 2014 11:56:44 +0000 (13:56 +0200)
wcfsetup/install/files/js/WCF.Attachment.js

index fb41f4035e5a5645f20d691a94c95d5bdd0682f4..5ff862a3b7dc63a3fe0a294b6289205e2cc3e9cd 100644 (file)
@@ -117,7 +117,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({
                this._fileListSelector.children('li').each(function(index, attachment) {
                        var $attachment = $(attachment);
                        if ($attachment.children('img.attachmentTinyThumbnail').length) {
-                               data.imageAttachmentIDs.push($attachment.data('objectID'));
+                               data.imageAttachmentIDs.push(parseInt($attachment.data('objectID')));
                        }
                });
        },