[
https://issues.apache.org/jira/browse/WW-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14974047#comment-14974047
]
Jasper Rosenberg commented on WW-4556:
--------------------------------------
There is no urgency as I can just override all of form-close.ftl, but obviously
it would be nice to be sooner since it would be much cleaner.
> In theme simple, move form-close.ftl tooltip code into own file
> ---------------------------------------------------------------
>
> Key: WW-4556
> URL: https://issues.apache.org/jira/browse/WW-4556
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - Tags
> Affects Versions: 2.3.24
> Reporter: Jasper Rosenberg
> Priority: Minor
> Labels: simple, theme, tooltip
>
> I'd like to be able to turn off the struts tooltip js/css without having to
> override the whole form-close.ftl file. This would be particularly useful
> when using the bootstrap plugin since I'm already importing tooltip js/css as
> part of my bootstrap js/css.
> I'd just move the block
> {code}
> <#--
> Code that will add javascript needed for tooltips
> --><#t/>
> <#if (parameters.hasTooltip?default(false))><#t/>
> <#lt/><!-- javascript that is needed for tooltips -->
> <#lt/><script type="text/javascript" src='<@s.url
> value="/struts/domTT.js" includeParams="none" encode="false" />'></script>
> <#lt/><link rel="stylesheet" type="text/css" href="<@s.url
> value="/struts/domTT.css" includeParams="none" encode="false" />"/>
>
> </#if><#t/>
> {code}
> to a file like form-close-tooltips.ftl
> And replace it in form-close.ftl with
> {code}
> <#include
> "/${parameters.templateDir}/${parameters.expandTheme}/form-close-tooltips.ftl"
> />
> {code}
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)