feat(core): menu bar popup when hover

This commit is contained in:
OldHawk
2018-05-16 15:39:07 +08:00
parent 54006f24b2
commit 44e664ecac
2 changed files with 18 additions and 7 deletions

View File

@@ -45,6 +45,17 @@
$('.popup_wrapper').remove();
}
});
//set menu bar opened when hover
$('div.navbar-mt ul.nav li.dropdown').hover(function () {
if (!$(this).hasClass('open')) {
$(this).find('.dropdown-toggle', this).trigger('click');
}
}, function () {
if ($(this).hasClass('open')) {
$(this).find('.dropdown-toggle', this).trigger('click');
}
});
});
/**