Fixed an issue when user is navigating back and forth to fast
authorAlexander Ebert <ebert@woltlab.com>
Wed, 12 Mar 2014 14:19:34 +0000 (15:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 12 Mar 2014 14:19:34 +0000 (15:19 +0100)
wcfsetup/install/files/js/WCF.ImageViewer.js

index 3972518932e5ed6ad9b4b93fec6b8eabc96b032d..ca7530bcb6918a048b58a907fc6b6054d54bc170 100644 (file)
@@ -583,7 +583,7 @@ $.widget('ui.wcfImageViewer', {
                
                var $currentActiveImage = this._active;
                this._ui.imageContainer.addClass('loading');
-               this._ui.images[$newImageIndex].off('load').on('load', $.proxy(function() {
+               this._ui.images[$newImageIndex].off('load').prop('src', false).on('load', $.proxy(function() {
                        this._imageOnLoad($currentActiveImage, $newImageIndex);
                }, this));