Project

General

Profile

« Previous | Next » 

Revision e12b3075

Added by Alon Goldboim almost 9 years ago

Fixes #9293 - Organization/location menu closes correctly

View differences:

app/assets/javascripts/topbar.js
}
});
$(document).on('mouseleave', '.collapse .dropdown.menu_tab_dropdown', function(){
if($(this).hasClass('open') && !($(this).hasClass('org-switcher'))){
if($(this).hasClass('open')){
if($(this).hasClass('org-switcher')){
$('.org-submenu').hide();
$('.loc-submenu').hide();
}
$(this).find('.dropdown-toggle:first').click();
}
});
......
$('.loc-submenu').hide();
});
$(document).on('mouseleave','.dropdown-menu', function(){
if($(this).parent().hasClass('org-switcher')) {
$('.org-submenu').hide();
$('.loc-submenu').hide();
$(this).find('.dropdown-toggle:first').click();
}
});
function mark_active_menu() {
var menus = $('.menu_tab_dropdown'),
path = window.location.pathname + window.location.search,

Also available in: Unified diff