Fixed an issue with slow images and active slideshow
authorAlexander Ebert <ebert@woltlab.com>
Wed, 12 Feb 2014 00:08:52 +0000 (01:08 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 12 Feb 2014 00:08:52 +0000 (01:08 +0100)
wcfsetup/install/files/js/WCF.ImageViewer.js

index 04921abecec8705cdb848decf87ec913bcf154cf..fe0b11cc9a0381f9467c8f4a254f4e43a37d250f 100644 (file)
@@ -373,7 +373,9 @@ $.widget('ui.wcfImageViewer', {
                }
                
                this._timer.stop();
-               this._ui.slideshow.toggle.children('span').removeClass('icon-pause').addClass('icon-play');
+               if (disableSlideshow) {
+                       this._ui.slideshow.toggle.children('span').removeClass('icon-pause').addClass('icon-play');
+               }
                
                this._slideshowEnabled = false;
                
@@ -508,6 +510,8 @@ $.widget('ui.wcfImageViewer', {
                
                this._ui.imageContainer.removeClass('loading');
                this._ui.images[activeImageIndex].addClass('active');
+               
+               this.startSlideshow();
        },
        
        /**