mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 05:55:32 +02:00
[ticket/11103] Only lookup $(target) once
PHPBB3-11103
This commit is contained in:
@ -498,9 +498,9 @@ $('#notification_list_button').click(function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#phpbb').click(function(e) {
|
||||
var target = e.target;
|
||||
var target = $(e.target);
|
||||
|
||||
if (!$(target).is('#notification_list') && !$(target).is('#notification_list_button') && !$(target).parents().is('#notification_list')) {
|
||||
if (!target.is('#notification_list') && !target.is('#notification_list_button') && !target.parents().is('#notification_list')) {
|
||||
$('#notification_list').hide();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user