From 63f84e790265690fdeee088da6a92325752f8bb8 Mon Sep 17 00:00:00 2001 From: Benaka Moorthi <benaka.moorthi@gmail.com> Date: Sun, 14 Jul 2013 03:59:49 -0400 Subject: [PATCH] Fixed regressions in main menu selection: first menu item in submenus were never highlighted when first item is shown and all submenu items were highlighted when any other item is shown. --- plugins/CoreHome/javascripts/menu.js | 4 ++-- plugins/CoreHome/stylesheets/menu.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/CoreHome/javascripts/menu.js b/plugins/CoreHome/javascripts/menu.js index b22e7a48a2..4a00c16ff0 100644 --- a/plugins/CoreHome/javascripts/menu.js +++ b/plugins/CoreHome/javascripts/menu.js @@ -56,7 +56,7 @@ menu.prototype = var module = broadcast.getValueFromUrl("module", url); var action = broadcast.getValueFromUrl("action", url); var moduleId = broadcast.getValueFromUrl("idGoal", url) || broadcast.getValueFromUrl("idDashboard", url); - var main_menu = $(this).parent().hasClass('nav') ? true : false; + var main_menu = $(this).parent().hasClass('nav_tab') ? true : false; if (main_menu) { $(this).attr({id: module}); } @@ -106,4 +106,4 @@ menu.prototype = $('li:first a:first', this.menuNode).click().addClass('sfHover').addClass('sfActive'); } } -}; \ No newline at end of file +}; diff --git a/plugins/CoreHome/stylesheets/menu.less b/plugins/CoreHome/stylesheets/menu.less index c95df5c08c..2bd0f491c5 100644 --- a/plugins/CoreHome/stylesheets/menu.less +++ b/plugins/CoreHome/stylesheets/menu.less @@ -45,7 +45,7 @@ .nav_tab > li:hover > a, .nav_tab > li.sfHover > a, -.nav_tab > li.sfActive a, +.nav_tab > li.sfActive > a, .nav_tab a:hover { color: #e87500; } @@ -128,4 +128,4 @@ ul.nav_tab > li.sfActive.sfHover > a { border-bottom: 0; } -} \ No newline at end of file +} -- GitLab