svn commit: r1750114 - /ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl

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

svn commit: r1750114 - /ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl

ashish-18
Author: ashish
Date: Fri Jun 24 14:12:10 2016
New Revision: 1750114

URL: http://svn.apache.org/viewvc?rev=1750114&view=rev
Log:
Applied patch from jira issue - OFBIZ-7358 - In Facility find shipment button doesn't work on first click.
Thanks Aman and Rahul Bhammarker for the contribution.

Modified:
    ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl

Modified: ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl?rev=1750114&r1=1750113&r2=1750114&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl (original)
+++ ofbiz/trunk/applications/product/template/shipment/FindShipment.ftl Fri Jun 24 14:12:10 2016
@@ -25,7 +25,6 @@ function lookupShipments() {
     } else {
         document.lookupShipmentForm.action = "<@ofbizUrl>FindShipment</@ofbizUrl>";
     }
-    document.lookupShipmentForm.submit();
 }
 // -->
 </script>
@@ -45,7 +44,7 @@ function lookupShipments() {
         <div class="button-bar">
           <a class="buttontext" href="<@ofbizUrl>EditShipment</@ofbizUrl>">${uiLabelMap.ProductNewShipment}</a>
         </div>
-        <form method="post" name="lookupShipmentForm" action="javascript:lookupShipments();">
+        <form method="post" name="lookupShipmentForm" onsubmit="lookupShipments();">
             <input type="hidden" name="lookupFlag" value="Y" />
             <table cellspacing="0" cellpadding="2" class="basic-table">
               <tr>