MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
oops I meant paged gallery
(load TabbedGallery.js if a relevant element exists)
m (oops I meant paged gallery)
Line 4: Line 4:
mw.loader.load( '/wiki/index.php?title=MediaWiki:Tabs.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/wiki/index.php?title=MediaWiki:Tabs.js&action=raw&ctype=text/javascript' );


if ( $( '.zdw-tabbed-gallery' ).length ) {
if ( $( '.zdw-paged-gallery' ).length ) {
   mw.loader.load( '/wiki/index.php?title=MediaWiki:TabbedGallery.js&action=raw&ctype=text/javascript' );
   mw.loader.load( '/wiki/index.php?title=MediaWiki:PagedGallery.js&action=raw&ctype=text/javascript' );
}
}


Navigation menu