[freeside-commits] branch FREESIDE_3_BRANCH updated. 0f87b832ccbd061752abf034526e1c3bbf7a89ba

Christopher Burger burgerc at 420.am
Wed May 24 08:56:43 PDT 2017


The branch, FREESIDE_3_BRANCH has been updated
       via  0f87b832ccbd061752abf034526e1c3bbf7a89ba (commit)
      from  db4224c7e058492c8e32a39d5b6dd3c3ebe01955 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0f87b832ccbd061752abf034526e1c3bbf7a89ba
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Mon Mar 6 16:30:54 2017 -0500

    RT# 37099, Updated Post payment button to have an id, and updated javascript to disable submit button when multiple customers found

diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 76a7f12..6502848 100644
--- a/httemplate/elements/customer-table.html
+++ b/httemplate/elements/customer-table.html
@@ -105,6 +105,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;
@@ -328,6 +331,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;
 
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html
index d4d4afa..ab76aa7 100644
--- a/httemplate/misc/batch-cust_pay.html
+++ b/httemplate/misc/batch-cust_pay.html
@@ -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>
 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/customer-table.html |    6 ++++++
 httemplate/misc/batch-cust_pay.html     |    2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list