summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-03-06 16:30:54 -0500
committerChristopher Burger <burgerc@freeside.biz>2017-03-21 08:59:46 -0400
commit6bbf2c9748aaf75e7609bf4a14dcb411eed8cf81 (patch)
treeb907ffaaf285a3a4f2722771fdce886296f6cdd1
parentf139899e03e7ff636a0830fd6a7bcc9f620b92a0 (diff)
RT# 37099, Updated Post payment button to have an id, and updated javascript to disable submit button when multiple customers found
-rw-r--r--httemplate/elements/customer-table.html6
-rw-r--r--httemplate/misc/batch-cust_pay.html2
2 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 0aa792d33..f0a38889f 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 d4d4afa6e..ab76aa7f6 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>