1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[ticket/11103] Hide notifications flyout on a click outside of the list.

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-10-16 17:31:48 -05:00
parent a080af4b05
commit 3557b39115
2 changed files with 21 additions and 0 deletions

View File

@@ -80,6 +80,13 @@ $('#qr_full_editor').click(function() {
$('#notification_list_button').click(function() {
$('#notification_list').toggle();
});
$('#phpbb').click(function(e) {
var target = e.target;
if (!$(target).is('#notification_list') && !$(target).is('#notification_list_button') && !$(target).parents().is('#notification_list')) {
$('#notification_list').hide();
}
});
/**
* This AJAXifies the quick-mod tools. The reason it cannot be a standard