mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11103] Only lookup $(target) once
PHPBB3-11103
This commit is contained in:
parent
f089e099fe
commit
623b9af38b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue