MediaWiki:Common.js: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary Tag: Reverted |
||
Line 118:
mw.hook( 'wikipage.collapsibleContent' ).add( mwCollapsibleSetup );
/**
* Expand MobileFrontend sections by default on bizslash.com
*/
mw.hook( 'mobileFrontEnd.section.initialized' ).add( function () {
$( '.section-heading' ).each( function () {
var $heading = $( this );
// Check if the section is currently closed (lacks the 'open-block' class)
if ( $heading.hasClass( 'open-block' ) === false ) {
$heading.trigger( 'click' );
}
} );
} );
/* End of mw.loader.using callback */
| |||