MediaWiki:Common.js: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 120:
 
/**
* Expand MobileFrontend sections by default on bizslash.com
*/
mw.hook( 'mobileFrontEnd.section.initialized' ).add( function () {
// Add500ms agives smallthe delaymobile (e.g.,skin 150ms)enough time to ensureattach eventits own listeners are ready
setTimeout(function () {
$( '.section-heading' ).each( function () {
var $heading = $( this );
// CheckIf ifit's thenot sectionalready isopen, currently closed (lackstrigger the 'open-block' class)click
if ( !$heading.hasClass( 'open-block' ) ===&& false!$heading.hasClass( 'is-expanded' ) ) {
$heading.trigger( 'click' );
}
} );
}, 150500);
} );
 
/* End of mw.loader.using callback */