From: Alexander Ebert Date: Wed, 12 Feb 2014 00:08:52 +0000 (+0100) Subject: Fixed an issue with slow images and active slideshow X-Git-Tag: 2.0.3~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c6b58413b91414c3348a296330d1bb1eb6423a9;p=GitHub%2FWoltLab%2FWCF.git Fixed an issue with slow images and active slideshow --- diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index 04921abece..fe0b11cc9a 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -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(); }, /**