Another fix in active trail detection
authorŁukasz Dywicki <ldywicki@apache.org>
Thu, 24 Jan 2013 19:58:58 +0000 (19:58 +0000)
committerŁukasz Dywicki <ldywicki@apache.org>
Thu, 24 Jan 2013 19:58:58 +0000 (19:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/karaf/webconsole/trunk@1438150 13f79535-47bb-0310-9956-ffa450edef68

core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.java

index e4f49df..15d3757 100644 (file)
@@ -58,7 +58,7 @@ public class ModuleTabPanel extends Panel {
                 Link<Page> link = item.getModelObject();
                 item.add(link);
                 if (LinkUtils.isActiveTrail(link)) {
-                    item.getParent().add(new AttributeModifier("class", "active"));
+                    item.add(new AttributeModifier("class", "active"));
                 }
             }
         });