- Add tooltip support for plugin links

- Make target=_blank for plugin links
This commit is contained in:
zzz
2010-04-05 13:22:16 +00:00
parent 32861b7ce9
commit caab860351
2 changed files with 22 additions and 4 deletions

View File

@@ -170,8 +170,15 @@ public class PluginStarter implements Runnable {
if (name == null)
name = ConfigClientsHelper.stripHTML(props, "consoleLinkName");
String url = ConfigClientsHelper.stripHTML(props, "consoleLinkURL");
if (name != null && url != null && name.length() > 0 && url.length() > 0)
NavHelper.registerApp(name, url);
if (name != null && url != null && name.length() > 0 && url.length() > 0) {
String tip = ConfigClientsHelper.stripHTML(props, "consoleLinkTooltip_" + Messages.getLanguage(ctx));
if (tip == null)
tip = ConfigClientsHelper.stripHTML(props, "consoleLinkTooltip");
if (tip != null)
NavHelper.registerApp(name, url, tip);
else
NavHelper.registerApp(name, url);
}
return true;
}