jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/374043 )

Change subject: Replace $( document ).ready(...) by $(...)
......................................................................


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: Ib1cc74f126751cb0672d00a564458c039548d111
---
M resources/jquery/jquery.lazyload.js
M resources/mw.UploadWizardPage.js
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/jquery/jquery.lazyload.js 
b/resources/jquery/jquery.lazyload.js
index b22b1e5..5cd1cf1 100644
--- a/resources/jquery/jquery.lazyload.js
+++ b/resources/jquery/jquery.lazyload.js
@@ -160,7 +160,7 @@
         }
 
         /* Force initial check if images should appear. */
-        $(document).ready(function() {
+        $(function() {
             update();
         });
 
diff --git a/resources/mw.UploadWizardPage.js b/resources/mw.UploadWizardPage.js
index fabdbab..09ccc5a 100644
--- a/resources/mw.UploadWizardPage.js
+++ b/resources/mw.UploadWizardPage.js
@@ -51,7 +51,7 @@
                uploadWizard.createInterface( '#upload-wizard' );
        };
 
-       $( document ).ready( function () {
+       $( function () {
                // show page.
                mw.UploadWizardPage();
        } );

-- 
To view, visit https://gerrit.wikimedia.org/r/374043
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib1cc74f126751cb0672d00a564458c039548d111
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to