mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Use document.body instead of 'body' as jQuery selector"
This commit is contained in:
commit
1f96009221
|
@ -138,7 +138,7 @@ function initDesktop() {
|
||||||
loadingPromise = mw.loader.using( 'ext.echo.ui.desktop' ).then( function () {
|
loadingPromise = mw.loader.using( 'ext.echo.ui.desktop' ).then( function () {
|
||||||
|
|
||||||
// Overlay
|
// Overlay
|
||||||
$( 'body' ).append( mw.echo.ui.$overlay );
|
mw.echo.ui.$overlay.appendTo( document.body );
|
||||||
|
|
||||||
unreadAlertCounter = new mw.echo.dm.UnreadNotificationCounter( echoApi, 'alert', maxNotificationCount );
|
unreadAlertCounter = new mw.echo.dm.UnreadNotificationCounter( echoApi, 'alert', maxNotificationCount );
|
||||||
alertModelManager = new mw.echo.dm.ModelManager( unreadAlertCounter, { type: 'alert' } );
|
alertModelManager = new mw.echo.dm.ModelManager( unreadAlertCounter, { type: 'alert' } );
|
||||||
|
|
Loading…
Reference in a new issue