struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (WW-4556) In theme simple, move form-close.ftl tooltip code into own file
Date Tue, 27 Oct 2015 08:09:27 GMT

     [ https://issues.apache.org/jira/browse/WW-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart resolved WW-4556.
-------------------------------
    Resolution: Fixed

> 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
>             Fix For: 2.3.25, 2.5
>
>
> 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)

Mime
View raw message