svn commit: r797126 - /ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r797126 - /ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

jacopoc
Author: jacopoc
Date: Thu Jul 23 16:05:36 2009
New Revision: 797126

URL: http://svn.apache.org/viewvc?rev=797126&view=rev
Log:
Fixed bug that was preventing the red-when attribute to work properly.

Modified:
    ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

Modified: ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=797126&r1=797125&r2=797126&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Thu Jul 23 16:05:36 2009
@@ -459,7 +459,7 @@
 
 <#macro renderTooltip tooltip tooltipStyle><#if tooltip?has_content><span class="<#if tooltipStyle?has_content>${tooltipStyle}<#else>tooltip</#if>">${tooltip}</span><#rt/></#if></#macro>
 <#macro renderClass className="" alert="">
-<#if className?has_content> class="${className}<#if alert?has_content> ${alert}</#if>" </#if>
+<#if className?has_content || (alert?has_content && alert=="true")> class="${className}<#if alert?has_content && alert=="true"> alert</#if>" </#if>
 </#macro>
 <#macro renderAsterisks requiredField requiredStyle>
 <#if requiredField=="true"><#if requiredStyle?has_content>*</#if></#if>