MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
m
Restore function
m (Remove debugging alert)
m (Restore function)
Line 217: Line 217:
     } );
     } );
}
}
mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton );


/* text directionality */
/* text directionality */
mw.hook( 'wikipage.content' ).add( function ( $content ) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
     if(mw.config.get('wgTitle').startsWith('ar/') ||  mw.config.get('wgTitle').startsWith('Ar/') ){
     if(mw.config.get('wgTitle').startsWith('ar/') ||  mw.config.get('wgTitle').startsWith('Ar/') ){
        console.log($content);
         $content.find( '#mw-content-text' )
         $content.find( '#mw-content-text' )
             .removeClass( 'mw-content-ltr' )
             .removeClass( 'mw-content-ltr' )

Navigation menu