This option causes the thumbnail images for the slideshow to be visible
as soon as the slideshow is loaded. They can still be closed normally.`
Bug: T147913
Change-Id: Iae6fd4f016d9fc98280d4ba92e4332ff06e1fb9e
protected function getModules() {
return [ 'mediawiki.page.gallery.slideshow' ];
}
+
+ public function setAdditionalOptions( $params ) {
+ $this->mAttribs['data-showthumbnails'] = isset( $params['showthumbnails'] );
+ }
}
// Initialize
this.drawCarousel();
this.setSizeRequirement();
- this.toggleThumbnails( false );
+ this.toggleThumbnails( !!this.$gallery.attr( 'data-showthumbnails' ) );
this.showCurrentImage();
// Events