diff --git a/modules/core/client/controllers/header.client.controller.js b/modules/core/client/controllers/header.client.controller.js index 22a34839..8baba03d 100644 --- a/modules/core/client/controllers/header.client.controller.js +++ b/modules/core/client/controllers/header.client.controller.js @@ -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'); } diff --git a/modules/core/client/services/menu.client.service.js b/modules/core/client/services/menu.client.service.js index 20f90d72..f0419915 100644 --- a/modules/core/client/services/menu.client.service.js +++ b/modules/core/client/services/menu.client.service.js @@ -61,7 +61,8 @@ target: options.target || undefined, divider: options.divider || false, faClass: options.faClass || null, - faIcon: options.faIcon || null + faIcon: options.faIcon || null, + linkState: options.linkState || undefined }); // Add submenu items @@ -96,7 +97,8 @@ target: options.target || undefined, divider: options.divider || false, faClass: options.faClass || null, - faIcon: options.faIcon || null + faIcon: options.faIcon || null, + linkState: options.linkState || undefined }); }); diff --git a/modules/core/client/views/header.client.view.html b/modules/core/client/views/header.client.view.html index 98dfd8f3..fa8d5141 100644 --- a/modules/core/client/views/header.client.view.html +++ b/modules/core/client/views/header.client.view.html @@ -15,7 +15,7 @@
  • - {{::item.title}}