mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
The language selection popup will disappear if the users clicks anywhere on the screen (#815).
This commit is contained in:
parent
10df66fddb
commit
e70e39e3f7
1 changed files with 7 additions and 1 deletions
|
@ -264,7 +264,9 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
||||||
trigger: 'manual'
|
trigger: 'manual'
|
||||||
});
|
});
|
||||||
|
|
||||||
$element.on('click', function () {
|
$element.on('click', function (event) {
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
if ($('#language-list').length === 0) {
|
if ($('#language-list').length === 0) {
|
||||||
$(this).popover('show');
|
$(this).popover('show');
|
||||||
} else {
|
} else {
|
||||||
|
@ -289,6 +291,10 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
||||||
})
|
})
|
||||||
.fail(GeneralFunctions.ajaxFailureHandler);
|
.fail(GeneralFunctions.ajaxFailureHandler);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('click', function() {
|
||||||
|
$element.popover('hide');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue