You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jasper Rosenberg (JIRA)" <ji...@apache.org> on 2015/10/23 13:31:27 UTC
[jira] [Created] (WW-4556) In theme simple, move form-close.ftl
tooltip code into own file
Jasper Rosenberg created WW-4556:
------------------------------------
Summary: 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
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)