From: Michael M Slusarz Date: Sat, 4 Apr 2009 05:32:14 +0000 (-0600) Subject: Continue highlighting base menu entry when browsing submenu X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8f4aeceffa68f9aee12c041963de4de0bc881136;p=horde.git Continue highlighting base menu entry when browsing submenu --- diff --git a/imp/js/src/ContextSensitive.js b/imp/js/src/ContextSensitive.js index 900330a01..bd4e130b4 100644 --- a/imp/js/src/ContextSensitive.js +++ b/imp/js/src/ContextSensitive.js @@ -87,7 +87,9 @@ var ContextSensitive = Class.create({ } }); - this.triggers.splice(idx, this.triggers.size() - idx); + this.triggers.splice(idx, this.triggers.size() - idx).each(function(s) { + $(s).removeClassName('contextHover'); + }); if (idx == 0) { this.baseelt = null; @@ -313,6 +315,7 @@ var ContextSensitive = Class.create({ y = offsets[1] + voffsets.top; this._displayMenu($(sub), x, y, id); this.triggers.push(id); + elt.addClassName('contextHover'); } } else if ((this.current.size() > 1) && elt_up.hasClassName('contextMenu') && diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index 59af663ec..bc991261c 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -744,7 +744,7 @@ span.attachName:hover, .nojserror { text-decoration: none; color: #000; } -.context a:hover { +.context a:hover, .context a.contextSubmenu.contextHover { background: gray; color: #fff; cursor: pointer;