Fixed ImageViewer failing for some images
authorAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jul 2016 16:00:04 +0000 (18:00 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jul 2016 16:00:10 +0000 (18:00 +0200)
wcfsetup/install/files/js/WCF.ImageViewer.js

index 2e5b2c2314dcf5623b0deb24d460a4957d6a8256..b9fe262807aeec6eb75eb795b735ad47c09a9d6f 100644 (file)
@@ -1213,7 +1213,7 @@ $.widget('ui.wcfImageViewer', {
                
                $(this.options.imageSelector).each(function(index, link) {
                        var $link = $(link);
-                       var $thumbnail = $link.find('> img, .attachmentThumbnailImageScalable').first();
+                       var $thumbnail = $link.find('> img, .attachmentThumbnailImage > img').first();
                        if (!$thumbnail.length) {
                                $thumbnail = $link.parentsUntil('.formAttachmentList').last().find('.attachmentTinyThumbnail');
                        }