Echo: Make overlay dismiss only if you click *outside* it.

Change-Id: Ifa099fa2d9ccf77a66cb45d39a52c7dbfd0f229d
This commit is contained in:
Andrew Garrett 2012-07-17 15:26:38 -07:00
parent acd4ee2102
commit 5408cf6526

View file

@ -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(); }
);