jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/330878 )
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: Iff3d7fb07a739fc6ff9b62a2f586c54cd9c8f315 --- M modules/ext.echo.init.js M modules/special/ext.echo.special.js 2 files changed, 2 insertions(+), 2 deletions(-) Approvals: Addshore: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ext.echo.init.js b/modules/ext.echo.init.js index 3800d39..19692bf 100644 --- a/modules/ext.echo.init.js +++ b/modules/ext.echo.init.js @@ -14,7 +14,7 @@ mw.echo.config.maxPrioritizedActions = 2; // Activate ooui - $( document ).ready( function () { + $( function () { var myWidget, echoApi, $existingAlertLink = $( '#pt-notifications-alert a' ), $existingMessageLink = $( '#pt-notifications-notice a' ), diff --git a/modules/special/ext.echo.special.js b/modules/special/ext.echo.special.js index 2a82a73..edae0d1 100644 --- a/modules/special/ext.echo.special.js +++ b/modules/special/ext.echo.special.js @@ -4,7 +4,7 @@ /*! * Echo Special:Notifications page initialization */ - $( document ).ready( function () { + $( function () { var specialPageContainer, limitNotifications = 50, links = mw.config.get( 'wgNotificationsSpecialPageLinks' ), -- To view, visit https://gerrit.wikimedia.org/r/330878 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iff3d7fb07a739fc6ff9b62a2f586c54cd9c8f315 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Echo Gerrit-Branch: master Gerrit-Owner: Fomafix <[email protected]> Gerrit-Reviewer: Addshore <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
