From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 11:51:31 +0000 (+0200) Subject: Register the toadlet itself for the link-enabled callback. X-Git-Tag: 0.1-RC1~491 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f3b816d5e2f61115b7be28dd6e686aaf4173c117;p=Sone.git Register the toadlet itself for the link-enabled callback. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 42c234e..8063019 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -149,7 +149,7 @@ public class WebInterface extends AbstractService { for (PageToadlet toadlet : pageToadlets) { String menuName = toadlet.getMenuName(); if (menuName != null) { - toadletContainer.register(toadlet, "Navigation.Menu.Name", toadlet.path(), true, "Navigation.Menu.Item." + menuName + ".Name", "Navigation.Menu.Item." + menuName + ".Tooltip", false, new AlwaysEnabledCallback()); + toadletContainer.register(toadlet, "Navigation.Menu.Name", toadlet.path(), true, "Navigation.Menu.Item." + menuName + ".Name", "Navigation.Menu.Item." + menuName + ".Tooltip", false, toadlet); } else { toadletContainer.register(toadlet, null, toadlet.path(), true, false); }