Author: jleroux
Date: Sun Jul 25 19:57:16 2010
New Revision: 979104
URL:
http://svn.apache.org/viewvc?rev=979104&view=revLog:
Makes fadeBackground="true" as it's by default in xsd and allow to pass disabled(true or false)
Modified:
ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl
Modified: ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl?rev=979104&r1=979103&r2=979104&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/htmlTemplate.ftl Sun Jul 25 19:57:16 2010
@@ -19,7 +19,7 @@ under the License.
<#include "component://widget/templates/htmlFormMacroLibrary.ftl"/>
-<#macro lookupField className="" alert="" name="" value="" size="20" maxlength="20" id="" event="" action="" disabled="" autocomplete="" descriptionFieldName="" formName="" fieldFormName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled="" presentation="" width="20" height="20" position="topleft" fadeBackground="" clearText="" showDescription="" initiallyCollapsed="">
+<#macro lookupField className="" alert="" name="" value="" size="20" maxlength="20" id="" event="" action="" disabled="" autocomplete="" descriptionFieldName="" formName="" fieldFormName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled="" presentation="" width="20" height="20" position="topleft" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="">
<#if (!ajaxEnabled?has_content)>
<#assign javascriptEnabled = Static["org.ofbiz.base.util.UtilHttp"].isJavaScriptEnabled(request) />
<#if (javascriptEnabled)>
@@ -41,6 +41,11 @@ under the License.
<#local showDescription = "false" />
</#if>
</#if>
+ <#if "true" == disabled>
+ <#local disabled = true/>
+ <#else>
+ <#local disabled = false />
+ </#if>
<@renderLookupField className alert name value size maxlength id event action disabled autocomplete descriptionFieldName formName fieldFormName targetParameterIter imgSrc ajaxUrl ajaxEnabled presentation width height position fadeBackground clearText showDescription initiallyCollapsed/>
</#macro>