GallerySlideshow: Keep alt attribute of images
authorPrateek Saxena <prtksxna@gmail.com>
Wed, 12 Oct 2016 07:39:11 +0000 (13:09 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Wed, 12 Oct 2016 07:39:11 +0000 (13:09 +0530)
Change-Id: Ia7fe913ab64b2796316588ba51ebe52e144d739f

resources/src/mediawiki/page/gallery-slideshow.js

index 3b2c86e..69cef00 100644 (file)
                // Show thumbnail stretched to the right size while the image loads
                this.$thumbnail = imageLi.find( 'img' );
                this.$img.attr( 'src', this.$thumbnail.attr( 'src' ) );
+               this.$img.attr( 'alt', this.$thumbnail.attr( 'alt' ) );
                this.$imgLink.attr( 'href', imageLi.find( 'a' ).eq( 0 ).attr( 'href' ) );
                this.setImageSize();