Project

General

Profile

« Previous | Next » 

Revision 8a3c9b97

Added by Alon Goldboim over 8 years ago

Fixes #9293 - Organization/location menu closes correctly

(cherry picked from commit e12b30751f50f294e0fb7f7e9f8aad3fe98d35e2)

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