From a76bd5320f28ad34f2227687ce2242658f072511 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 6 Jan 2017 14:06:39 +0100 Subject: [PATCH] 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 --- modules/ext.echo.init.js | 2 +- modules/special/ext.echo.special.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.echo.init.js b/modules/ext.echo.init.js index 3800d3969..19692bf2d 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 2a82a7311..edae0d1ab 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' ),