svn commit: r823165 - /ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl

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

svn commit: r823165 - /ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl

ashish-18
Author: ashish
Date: Thu Oct  8 13:24:39 2009
New Revision: 823165

URL: http://svn.apache.org/viewvc?rev=823165&view=rev
Log:
Applied patch from jira issue OFBIZ-3008 - Delete link is not working on Edit Facility Location screen.
Thanks Akash for the contribution.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl?rev=823165&r1=823164&r2=823165&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/EditFacilityLocation.ftl Thu Oct  8 13:24:39 2009
@@ -114,14 +114,14 @@
             <tr>
                 <td><#if product?exists>${(product.internalName)?if_exists}</#if>[${productFacilityLocation.productId}]</td>
                 <td>
-                    <form method="post" action="<@ofbizUrl>updateProductFacilityLocation</@ofbizUrl>" name="lineForm${productFacilityLocation_index}">
+                    <form method="post" action="<@ofbizUrl>updateProductFacilityLocation</@ofbizUrl>" id="lineForm${productFacilityLocation_index}">
                         <input type="hidden" name="productId" value="${(productFacilityLocation.productId)?if_exists}"/>
                         <input type="hidden" name="facilityId" value="${(productFacilityLocation.facilityId)?if_exists}"/>
                         <input type="hidden" name="locationSeqId" value="${(productFacilityLocation.locationSeqId)?if_exists}"/>
                         <input type="text" size="10" name="minimumStock" value="${(productFacilityLocation.minimumStock)?if_exists}"/>
                         <input type="text" size="10" name="moveQuantity" value="${(productFacilityLocation.moveQuantity)?if_exists}"/>
                         <input type="submit" value="${uiLabelMap.CommonUpdate}"/>
-                        <a href="<@ofbizUrl>deleteProductFacilityLocation?productId=${(productFacilityLocation.productId)?if_exists}&facilityId=${(productFacilityLocation.facilityId)?if_exists}&locationSeqId=${(productFacilityLocation.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a>
+                        <a href="javascript:$('lineForm${productFacilityLocation_index}').action='<@ofbizUrl>deleteProductFacilityLocation</@ofbizUrl>';$('lineForm${productFacilityLocation_index}').submit();" class="buttontext">${uiLabelMap.CommonDelete}</a>
                     </form>
                 </td>
             </tr>