better detection whether or not contactsmenu target was clicked

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2017-04-24 15:32:51 +02:00
parent 399f08bd33
commit e61cf83faf
No known key found for this signature in database
GPG key ID: 9D98FD9380A1CB43

View file

@ -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)) {