diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-04-24 15:32:51 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-04-26 09:28:14 +0200 |
commit | e61cf83faf5cda15ba9f27193b7c5a89c9129da9 (patch) | |
tree | c74a1277a9eb60d5238f73f267125fff70308b7c /core | |
parent | 399f08bd330070d53aa36441632bed0578845a53 (diff) | |
download | nextcloud-server-e61cf83faf5cda15ba9f27193b7c5a89c9129da9.tar.gz nextcloud-server-e61cf83faf5cda15ba9f27193b7c5a89c9129da9.zip |
better detection whether or not contactsmenu target was clicked
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/jquery.contactsmenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/jquery.contactsmenu.js b/core/js/jquery.contactsmenu.js index 2c950fb35f6..84f5a3f9eab 100644 --- a/core/js/jquery.contactsmenu.js +++ b/core/js/jquery.contactsmenu.js @@ -90,8 +90,8 @@ }); $(document).click(function(event) { - var clickedList = $.contains($list, event.target); - var clickedTarget = $.contains($div, event.target); + var clickedList = ($list.has(event.target).length > 0); + var clickedTarget = ($div.has(event.target).length > 0); $div.each(function() { if ($(this).is(event.target)) { |