From daf4450f853077178d8944287d3ec2b6b032dec4 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 29 Jan 2014 11:12:50 +0000 Subject: [PATCH] This can be removed, the same is done in renderLookupField macro in htmlFormMacroLibrary.ftl which is included above and called just below git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1562401 13f79535-47bb-0310-9956-ffa450edef68 --- .../webcommon/includes/htmlTemplate.ftl | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/framework/common/webcommon/includes/htmlTemplate.ftl b/framework/common/webcommon/includes/htmlTemplate.ftl index c9d9a769c5..fde117c1ae 100644 --- a/framework/common/webcommon/includes/htmlTemplate.ftl +++ b/framework/common/webcommon/includes/htmlTemplate.ftl @@ -29,23 +29,11 @@ under the License. <#if (!id?has_content)> <#local id = Static["org.ofbiz.base.util.UtilHttp"].getNextUniqueId(request) /> - <#if (!ajaxUrl?has_content)> - <#local ajaxUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, fieldFormName)/> - <#local ajaxUrl = id + "," + ajaxUrl + ",ajaxLookup=Y" /> - - <#if (!showDescription?has_content)> - <#local showDescription = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("widget.properties", "widget.lookup.showDescription", "N")> - <#if "Y" == showDescription> - <#local showDescription = "true" /> - <#else> - <#local showDescription = "false" /> - - - <#if "true" == readonly> - <#local readonly = true/> - <#else> - <#local readonly = false /> - + <#if "true" == readonly> + <#local readonly = true/> + <#else> + <#local readonly = false /> + <@renderLookupField name formName fieldFormName className alert value size maxlength id event action readonly autocomplete descriptionFieldName targetParameterIter imgSrc ajaxUrl ajaxEnabled presentation width height position fadeBackground clearText showDescription initiallyCollapsed/> @@ -75,4 +63,4 @@ under the License. <@renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl uiLabelMap.CommonFirst paginatePreviousStyle ajaxPreviousUrl previousUrl uiLabelMap.CommonPrevious uiLabelMap.CommonPage ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl uiLabelMap.CommonNext paginateLastStyle ajaxLastUrl lastUrl uiLabelMap.CommonLast uiLabelMap.CommonItemsPerPage/> - \ No newline at end of file +