From: Marcel Werk Date: Sat, 26 Oct 2013 17:24:51 +0000 (+0200) Subject: Fixed slideshow issue X-Git-Tag: 2.0.0_Beta_11~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b567c0c69d2ee1f92285f89a101f73e61d47beb3;p=GitHub%2FWoltLab%2FWCF.git Fixed slideshow issue --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index baaf1ca904..6a36492a6b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -9154,7 +9154,9 @@ $.widget('ui.wcfSlideshow', { this._count = this._items.length; this._index = 0; - this._initSlideshow(); + if (this._count > 1) { + this._initSlideshow(); + } }, /** @@ -9181,18 +9183,16 @@ $.widget('ui.wcfSlideshow', { }).hover($.proxy(this._hoverIn, this), $.proxy(this._hoverOut, this)); // create toggle buttons - if (this._items.length > 1) { - this._buttonList = $('