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
This commit is contained in:
Fomafix 2017-01-06 14:06:39 +01:00
parent 0db2fe2087
commit a76bd5320f
2 changed files with 2 additions and 2 deletions

View file

@ -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' ),

View file

@ -4,7 +4,7 @@
/*!
* Echo Special:Notifications page initialization
*/
$( document ).ready( function () {
$( function () {
var specialPageContainer,
limitNotifications = 50,
links = mw.config.get( 'wgNotificationsSpecialPageLinks' ),