The slideshow mode of gallery tag was triggered upon document.ready,
instead of on wikipage.content. For this reason, after editing and
saving one of these galleries in VE, you would loose your slideshow
mode and default back to packed mode.
Change-Id: I411703b3c1cafbd7d763cbaa8bc9585924c51030
};
// Bootstrap all slideshow galleries
- $( function () {
- $( '.mw-gallery-slideshow' ).each( function () {
+ mw.hook( 'wikipage.content' ).add( function ( $content ) {
+ $content.find( '.mw-gallery-slideshow' ).each( function () {
/*jshint -W031 */
new mw.GallerySlideshow( this );
/*jshint +W031 */