Use single entry point mw.uls.init for all ULS ui initialization
Change-Id: I485ea27deebb530eb89e4b0935eda01a5276f884
This commit is contained in:
committed by
Amire80
parent
ea50b8216c
commit
8ddff0b2fc
@@ -81,17 +81,16 @@
|
||||
};
|
||||
|
||||
$( document ).ready( function () {
|
||||
if ( !mw.uls.isBrowserSupported() ) {
|
||||
return;
|
||||
}
|
||||
// MediaWiki specific overrides for jquery.webfonts
|
||||
$.extend( $.fn.webfonts.defaults, {
|
||||
repository: mediawikiFontRepository,
|
||||
fontStack: new Array( $( 'body' ).css( 'font-family' ) )
|
||||
mw.uls.init( function () {
|
||||
|
||||
// MediaWiki specific overrides for jquery.webfonts
|
||||
$.extend( $.fn.webfonts.defaults, {
|
||||
repository: mediawikiFontRepository,
|
||||
fontStack: new Array( $( 'body' ).css( 'font-family' ) )
|
||||
} );
|
||||
|
||||
mw.webfonts.preferences.load();
|
||||
mw.webfonts.setup();
|
||||
} );
|
||||
|
||||
mw.webfonts.preferences.load();
|
||||
mw.webfonts.setup();
|
||||
} );
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
Reference in New Issue
Block a user