Fixed image being incorrectly marked as active on init
authorAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 10:37:49 +0000 (11:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 10:37:49 +0000 (11:37 +0100)
wcfsetup/install/files/js/WCF.ImageViewer.js

index f00471eb1a695e66e49ac8e81018a11f38b56ad0..d7fef73c7e303c51035a2e5519d17231f7576bb5 100644 (file)
@@ -776,7 +776,7 @@ $.widget('ui.wcfImageViewer', {
                this._didInit = true;
                
                this._container = $('<div class="wcfImageViewer' + (this.options.staticViewer ? ' wcfImageViewerStatic' : '') + '" />').appendTo(document.body);
-               var $imageContainer = $('<div><img class="active" /><img /></div>').appendTo(this._container);
+               var $imageContainer = $('<div><img /><img /></div>').appendTo(this._container);
                var $imageList = $('<footer><span class="wcfImageViewerButtonPrevious icon icon-double-angle-left" /><div><ul /></div><span class="wcfImageViewerButtonNext icon icon-double-angle-right" /></footer>').appendTo(this._container);
                var $slideshowContainer = $('<ul />').appendTo($imageContainer);
                var $slideshowButtonPrevious = $('<li class="wcfImageViewerSlideshowButtonPrevious"><span class="icon icon48 icon-angle-left" /></li>').appendTo($slideshowContainer);