You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2010/06/23 16:36:31 UTC
svn commit: r957221 -
/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
Author: jleroux
Date: Wed Jun 23 14:36:31 2010
New Revision: 957221
URL: http://svn.apache.org/viewvc?rev=957221&view=rev
Log:
Fix: "FIXME Problem here the input field is shared", now use also a layered lookup, only remains the order item (a bit more convoluted)
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl?rev=957221&r1=957220&r2=957221&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl Wed Jun 23 14:36:31 2010
@@ -81,20 +81,9 @@ under the License.
<td><input type="text" size="25" name="add_product_id" value="${productId?if_exists}"/>
<span class='tabletext'>
<a href="javascript:quicklookup(document.quickaddform.add_product_id)" class="buttontext">${uiLabelMap.OrderQuickLookup}</a>
- <a href="javascript:call_fieldlookup2(document.quickaddform.add_product_id,'<@ofbizUrl><#if orderType=="PURCHASE_ORDER">LookupSupplierProduct?partyId=${partyId?if_exists}<#e...@ofbizUrl>');">
+ <a href="javascript:call_fieldlookupLayer(document.quickaddform.add_product_id,'<@ofbizUrl><#if orderType=="PURCHASE_ORDER">LookupSupplierProduct?partyId=${partyId?if_exists}<#e...@ofbizUrl>','','','topleft','true','false');">
<img src="<@o...@ofbizContentUrl>" width="15" height="14" border="0" alt="${uiLabelMap.CommonClickHereForFieldLookup}"/>
</a>
- <#-- FIXME Problem here: the input field is shared -->
- <#--if orderType=="PURCHASE_ORDER">
- <#if partyId?has_content>
- <#assign fieldFormName="LookupSupplierProduct?partyId=${partyId}">
- <#else>
- <#assign fieldFormName="LookupSupplierProduct">
- </#if>
- <#else>
- <#assign fieldFormName="LookupProduct">
- </#if>
- <@htmlTemplate.lookupField formName="quickaddform" name="add_product_id" id="add_product_id" fieldFormName="${fieldFormName}"/-->
<a href="javascript:quicklookupGiftCertificate()" class="buttontext">${uiLabelMap.OrderAddGiftCertificate}</a>
<#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
<a href="javascript:showQohAtp()" class="buttontext">${uiLabelMap.ProductAtpQoh}</a>