Merge branch 'master' of git.freeside.biz:/home/git/freeside
authorIvan Kohler <ivan@freeside.biz>
Tue, 7 Mar 2017 04:21:05 +0000 (20:21 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 7 Mar 2017 04:21:05 +0000 (20:21 -0800)
httemplate/elements/customer-table.html
httemplate/misc/batch-cust_pay.html

index 25c26b5..457157e 100644 (file)
@@ -108,6 +108,9 @@ and probably should be cleaned up more before being used by anything else.
       var customer = document.getElementById('customer'+searchrow);
       var customer_select = document.getElementById('cust_select'+searchrow);
 
+      var postPaymentBtn = document.getElementById('btnsubmit');
+      postPaymentBtn.disabled = false;
+
       display_custnum_obj.disabled = false;
       display_custnum_obj.style.backgroundColor = '#ffffff';
       customer.disabled = false;
@@ -331,6 +334,9 @@ and probably should be cleaned up more before being used by anything else.
         custnum_obj.value = 'Multiple'; // or something
         custnum_obj.style.color = '#ff0000';
 
+        var postPaymentBtn = document.getElementById('btnsubmit');
+        postPaymentBtn.disabled = true;
+
         //blank the current list
         customer_select.options.length = 0;
 
index e20e4a4..003dc86 100644 (file)
@@ -448,7 +448,7 @@ function preload() {
 &>
 
 <BR>
-<INPUT TYPE="button" VALUE="Post payment batch" name="btnsubmit" onclick="window.onbeforeunload = null; document.OneTrueForm.submit(); this.disabled = true;">
+<INPUT TYPE="button" VALUE="Post payment batch" name="btnsubmit" id="btnsubmit" onclick="window.onbeforeunload = null; document.OneTrueForm.submit(); this.disabled = true;">
 
 </FORM>