Mattflaschen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64015


Change subject: Add overlay hook for user scripts.
......................................................................

Add overlay hook for user scripts.

Change-Id: I720d4fe65a6501b552dbef21cb258c027dc18867
---
M modules/overlay/ext.echo.overlay.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/15/64015/1

diff --git a/modules/overlay/ext.echo.overlay.js 
b/modules/overlay/ext.echo.overlay.js
index 531a9d2..fbf6639 100644
--- a/modules/overlay/ext.echo.overlay.js
+++ b/modules/overlay/ext.echo.overlay.js
@@ -247,6 +247,9 @@
                                                .appendTo( $( 
'#pt-notifications' ) );
                                        // Create the pokey (aka chevron)
                                        $( '.mw-echo-overlay' ).before( $( 
'<div/>' ).addClass( 'mw-echo-overlay-pokey' ) );
+
+                                       mw.hook( 
'ext.echo.overlay.beforeShowingOverlay' ).fire( $overlay );
+
                                        // Show the notifications overlay
                                        $overlay.show();
                                } );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I720d4fe65a6501b552dbef21cb258c027dc18867
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>

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

Reply via email to