Improved image viewer with targetImageID feature
authorAlexander Ebert <ebert@woltlab.com>
Sat, 22 Feb 2014 18:01:42 +0000 (19:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 22 Feb 2014 18:01:42 +0000 (19:01 +0100)
wcfsetup/install/files/js/WCF.ImageViewer.js

index 9ea03583fa26d216d111c37c5c36d3d65adf8233..89fc32eed62811a10f599942c85370a1772be145 100644 (file)
@@ -415,6 +415,7 @@ $.widget('ui.wcfImageViewer', {
                        }
                        
                        $thumbnail.trigger('click');
+                       this.moveToImage($thumbnail.data('index'));
                        
                        if (this._items > 1 && this.options.enableSlideshow && !targetImageID) {
                                this.startSlideshow();