mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 15:47:24 +02:00
feat(core): menu bar popup when hover
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user