Author: jacopoc
Date: Thu Jul 23 16:05:36 2009
New Revision: 797126
URL:
http://svn.apache.org/viewvc?rev=797126&view=revLog:
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>