From 6bbf2c9748aaf75e7609bf4a14dcb411eed8cf81 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 6 Mar 2017 16:30:54 -0500 Subject: RT# 37099, Updated Post payment button to have an id, and updated javascript to disable submit button when multiple customers found --- httemplate/elements/customer-table.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'httemplate/elements/customer-table.html') 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; -- cgit v1.2.1