Revision bf4a13d3
Added by Walden Raines over 10 years ago
app/assets/javascripts/topbar.js | ||
---|---|---|
$('.persist-header').after(clone);
|
||
$('.persist-header:first').hide();
|
||
$('.persist-header:last').css({
|
||
'position': 'static'
|
||
'position': 'static', 'top': '0'
|
||
});
|
||
|
||
mark_active_menu();
|
||
... | ... | |
})
|
||
|
||
//open main menu on hover
|
||
$(document).on('mouseenter', '.dropdown.menu_tab_dropdown', function(){
|
||
$(document).on('mouseenter', '.collapse .dropdown.menu_tab_dropdown', function(){
|
||
if(!$(this).hasClass('open')){
|
||
$(this).find('.dropdown-toggle:first').click();
|
||
}
|
||
});
|
||
$(document).on('mouseleave', '.collapse .dropdown.menu_tab_dropdown', function(){
|
||
if($(this).hasClass('open')){
|
||
$(this).find('.dropdown-toggle:first').click();
|
||
}
|
||
});
|
||
|
||
function mark_active_menu() {
|
||
$("[class^='menu_tab_']").removeClass('active');
|
Also available in: Unified diff
Fixes #3811 updating to bootstrap 3