Replace $( document ).ready(...) by $(...)
In jQuery 3 $(document).ready(...) is deprecated. https://jquery.com/upgrade-guide/3.0/#deprecated-document-ready-handlers-other-than-jquery-function Change-Id: I1a9f578d8cf8fa2d9dd38a1b2d3a0b3c32914b74
This commit is contained in:
@@ -506,7 +506,7 @@
|
||||
if ( document.readyState === 'interactive' ) {
|
||||
createCompactList();
|
||||
} else {
|
||||
$( document ).ready( createCompactList );
|
||||
$( createCompactList );
|
||||
}
|
||||
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
@@ -523,6 +523,6 @@
|
||||
if ( document.readyState === 'interactive' ) {
|
||||
init();
|
||||
} else {
|
||||
$( document ).ready( init );
|
||||
$( init );
|
||||
}
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
}, 0 );
|
||||
};
|
||||
|
||||
$( document ).ready( function () {
|
||||
$( function () {
|
||||
mw.webfonts.preferences.load();
|
||||
|
||||
if ( mw.webfonts.preferences.isEnabled() ) {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
mediawikiFontRepository.base = mw.config.get( 'wgExtensionAssetsPath' ) +
|
||||
'/UniversalLanguageSelector/data/fontrepo/fonts/';
|
||||
|
||||
$( document ).ready( function () {
|
||||
$( function () {
|
||||
// MediaWiki specific overrides for jquery.webfonts
|
||||
$.extend( $.fn.webfonts.defaults, {
|
||||
repository: mediawikiFontRepository,
|
||||
|
||||
Reference in New Issue
Block a user