The language selection popup will disappear if the users clicks anywhere on the screen (#815).

This commit is contained in:
Alex Tselegidis 2020-09-23 13:40:49 +03:00
parent 10df66fddb
commit e70e39e3f7

View file

@ -264,7 +264,9 @@ window.GeneralFunctions = window.GeneralFunctions || {};
trigger: 'manual'
});
$element.on('click', function () {
$element.on('click', function (event) {
event.stopPropagation();
if ($('#language-list').length === 0) {
$(this).popover('show');
} else {
@ -289,6 +291,10 @@ window.GeneralFunctions = window.GeneralFunctions || {};
})
.fail(GeneralFunctions.ajaxFailureHandler);
});
$(document).on('click', function() {
$element.popover('hide');
});
};
/**