mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-28 01:00:59 +01:00
feat(core): dropdown menu item default event
This commit is contained in:
@@ -47,11 +47,17 @@
|
||||
});
|
||||
|
||||
//set menu bar opened when hover
|
||||
$('div.navbar-mt ul.nav li.dropdown').hover(function () {
|
||||
$('div.navbar-mt ul.nav li.dropdown').hover(function (evt) {
|
||||
if (!$(this).hasClass('open')) {
|
||||
$(this).find('.dropdown-toggle', this).trigger('click');
|
||||
$(this).bind('click', function (e) {
|
||||
var sta = $(this).find('.dropdown-toggle', this).attr('alt');
|
||||
if (sta)
|
||||
$state.go(sta);
|
||||
});
|
||||
}
|
||||
}, function () {
|
||||
}, function (evt) {
|
||||
$(this).unbind('click');
|
||||
if ($(this).hasClass('open')) {
|
||||
$(this).find('.dropdown-toggle', this).trigger('click');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user