From 55daa3803103f841d0fb2b559040115908724da8 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 14 Apr 2016 08:21:26 -0500 Subject: [PATCH] RT#41671 Fix double click prevention for all legacy buttons [worked previously, renamed button, still work] --- httemplate/edit/cust_tax_adjustment.html | 8 ++++---- httemplate/edit/prepay_credit.cgi | 4 ++-- httemplate/edit/quick-charge.html | 8 ++++---- httemplate/edit/rate.cgi | 4 ++-- httemplate/edit/reg_code.cgi | 4 ++-- httemplate/misc/batch-cust_pay.html | 6 +++--- httemplate/misc/email-quotation.html | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/httemplate/edit/cust_tax_adjustment.html b/httemplate/edit/cust_tax_adjustment.html index 9d4afbc60..a013da6cc 100644 --- a/httemplate/edit/cust_tax_adjustment.html +++ b/httemplate/edit/cust_tax_adjustment.html @@ -7,9 +7,9 @@ function enable_tax_adjustment () { if ( document.TaxAdjustmentForm.amount.value && document.TaxAdjustmentForm.taxname.selectedIndex > 0 ) { - document.TaxAdjustmentForm.submit.disabled = false; + document.TaxAdjustmentForm.submitButton.disabled = false; } else { - document.TaxAdjustmentForm.submit.disabled = true; + document.TaxAdjustmentForm.submitButton.disabled = true; } } @@ -34,7 +34,7 @@ function validate_tax_adjustment () { -
+ @@ -69,7 +69,7 @@ function validate_tax_adjustment () {
-param('error') ? '' :' DISABLED' %>> +param('error') ? '' :' DISABLED' %>>
diff --git a/httemplate/edit/prepay_credit.cgi b/httemplate/edit/prepay_credit.cgi index 3f0d6ba1d..01a54fc52 100644 --- a/httemplate/edit/prepay_credit.cgi +++ b/httemplate/edit/prepay_credit.cgi @@ -2,7 +2,7 @@ <% include('/elements/error.html') %> -
+ Generate @@ -74,7 +74,7 @@ $ +
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 14c3f51e6..1ff70009c 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -15,9 +15,9 @@ function enable_quick_charge (e) { if ( document.QuickChargeForm.amount.value && document.QuickChargeForm.pkg.value ) { - document.QuickChargeForm.submit.disabled = false; + document.QuickChargeForm.submitButton.disabled = false; } else { - document.QuickChargeForm.submit.disabled = true; + document.QuickChargeForm.submitButton.disabled = true; } % if ( $curuser->option('disable_enter_submit_onetimecharge') ) { @@ -97,7 +97,7 @@ function bill_now_changed (what) { NAME = "QuickChargeForm" ID = "QuickChargeForm" METHOD = "POST" - onSubmit = "document.QuickChargeForm.submit.disabled=true; return validate_quick_charge();" + onSubmit = "document.QuickChargeForm.submitButton.disabled=true; return validate_quick_charge();" > @@ -362,7 +362,7 @@ function bill_now_changed (what) { % my $label = $cust_pkg % ? emt('Modify one-time charge') % : emt('Add one-time charge'); -param('error') || $cust_pkg) ? '' :' DISABLED' %>> diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi index 5bfc108c1..57a472ec8 100644 --- a/httemplate/edit/rate.cgi +++ b/httemplate/edit/rate.cgi @@ -31,9 +31,9 @@
-" onClick="document.OneTrueForm.submit.disabled=true; process();"> +%>" onClick="document.OneTrueForm.submitButton.disabled=true; process();"> % if($rate->ratenum) { diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index 76790ab02..e8e08cd5c 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -2,7 +2,7 @@ <% include('/elements/error.html') %> -
+ Generate @@ -25,7 +25,7 @@ registration codes for <% $agent->agent %> allowing the following package
- +
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 197ade14f..d785904cf 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -17,7 +17,7 @@