aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript/core.js
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-01-15 12:30:26 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-01-15 12:30:26 -0600
commit623b9af38bd56e1bfc234675f7d2e2404298fbf7 (patch)
treedae504dee3dcf7341c9676cd95c62a6c2d45f99e /phpBB/assets/javascript/core.js
parentf089e099fed38b1bdae5316fb09f0c8ed847d495 (diff)
downloadforums-623b9af38bd56e1bfc234675f7d2e2404298fbf7.tar
forums-623b9af38bd56e1bfc234675f7d2e2404298fbf7.tar.gz
forums-623b9af38bd56e1bfc234675f7d2e2404298fbf7.tar.bz2
forums-623b9af38bd56e1bfc234675f7d2e2404298fbf7.tar.xz
forums-623b9af38bd56e1bfc234675f7d2e2404298fbf7.zip
[ticket/11103] Only lookup $(target) once
PHPBB3-11103
Diffstat (limited to 'phpBB/assets/javascript/core.js')
-rw-r--r--phpBB/assets/javascript/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index a5a10e7377..9909359c2c 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -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();
}
});