svn commit: r957221 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl

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

svn commit: r957221 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcart.ftl

jleroux@apache.org
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}<#else>LookupProduct</#if></@ofbizUrl>');">
+                      <a href="javascript:call_fieldlookupLayer(document.quickaddform.add_product_id,'<@ofbizUrl><#if orderType=="PURCHASE_ORDER">LookupSupplierProduct?partyId=${partyId?if_exists}<#else>LookupProduct</#if></@ofbizUrl>','','','topleft','true','false');">
                         <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@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>