Fixes Issue 26561:Double click in create lines from in Goods receipt is not
authorAtul Gaware <atul.gaware@openbravo.com>
Mon, 01 Sep 2014 23:41:34 +0530
changeset 24365 995ac17cabcc
parent 24364 33f4f0a2e46d
child 24366 6b48609f5665
Fixes Issue 26561:Double click in create lines from in Goods receipt is not
controlled and dulicate lines
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Mon Sep 01 12:48:37 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Mon Sep 01 23:41:34 2014 +0530
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2011 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2014 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -32,6 +32,7 @@
   <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
   <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
   <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
+  <script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
   <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
@@ -44,6 +45,8 @@
     }
 
     function submitThisPage(strCommand) {
+      disableButton('buttonOK');
+      disableButton('buttonCancel');
       if (validate(strCommand)) {
         var inp= document.frmMain.inpId;
         var total = document.frmMain.inpId.length;
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html	Mon Sep 01 12:48:37 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html	Mon Sep 01 23:41:34 2014 +0530
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2013 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2014 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -32,6 +32,7 @@
   <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
   <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
   <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
+  <script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
   <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
@@ -44,6 +45,8 @@
     }
 
     function submitThisPage(strCommand) {
+      disableButton('buttonOK');
+      disableButton('buttonCancel');
       if (validate(strCommand)) {
         var inp= document.frmMain.inpId; 
         var total = document.frmMain.inpId.length;