summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-03-06 16:30:54 -0500
committerChristopher Burger <burgerc@freeside.biz>2017-05-24 11:49:25 -0400
commit0f87b832ccbd061752abf034526e1c3bbf7a89ba (patch)
tree71322bf8a64677141bd9be0efda228f5390faf8c /httemplate/elements
parentdb4224c7e058492c8e32a39d5b6dd3c3ebe01955 (diff)
RT# 37099, Updated Post payment button to have an id, and updated javascript to disable submit button when multiple customers found
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/customer-table.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 76a7f12f6..650284860 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;