From f1f1813b04775ff6899722ca9a0cf4984c3aabf5 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 12 Mar 2014 00:44:30 +0100 Subject: [PATCH] Activate only the first match if multiple menu items carry the same URL --- public/js/icinga/loader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index c186f9655..9795f0431 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -252,6 +252,8 @@ $el.closest('li').addClass('active'); $el.parents('li').addClass('active'); } + // Interrupt .each, only on menu item shall be active + return false; } else if ($(el).closest('table.action').length) { $el.addClass('active'); }