mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
Echo: Make overlay dismiss only if you click *outside* it.
Change-Id: Ifa099fa2d9ccf77a66cb45d39a52c7dbfd0f229d
This commit is contained in:
parent
acd4ee2102
commit
5408cf6526
|
@ -116,7 +116,7 @@
|
|||
} );
|
||||
|
||||
$('body').click( function(e) {
|
||||
if ( ! $(e.target).is('#pt-notifications *') ) {
|
||||
if ( ! $(e.target).is('.mw-echo-overlay,.mw-echo-overlay *') ) {
|
||||
$('.mw-echo-overlay').fadeOut( 'fast',
|
||||
function() { $(this).remove(); }
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue