better detection whether or not contactsmenu target was clicked
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
399f08bd33
commit
e61cf83faf
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue