Signed-off-by: Simon L'nu <simon.lnu@gmail.com>
$('#nav-notifications-linkmenu').click(function(event) {
event.stopPropagation();
});
+ // click outside profiles menu closes it
+ $('html').click(function() {
+ $('#profiles-menu-trigger').removeClass('selected');
+ document.getElementById("profiles-menu").style.display = "none";
+ });
+
+ $('#profiles-menu').click(function(event) {
+ event.stopPropagation();
+ });
// main function in toolbar functioning
function toggleToolbar() {
$('#nav-notifications-linkmenu').click(function(event) {
event.stopPropagation();
});
+ // click outside profiles menu closes it
+ $('html').click(function() {
+ $('#profiles-menu-trigger').removeClass('selected');
+ document.getElementById("profiles-menu").style.display = "none";
+ });
+
+ $('#profiles-menu').click(function(event) {
+ event.stopPropagation();
+ });
// main function in toolbar functioning
function toggleToolbar() {