From b567c0c69d2ee1f92285f89a101f73e61d47beb3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 26 Oct 2013 19:24:51 +0200 Subject: [PATCH] Fixed slideshow issue --- wcfsetup/install/files/js/WCF.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 = $('