From c8758c049e81f88d086a42c92a56a91815dbbb26 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Wed, 20 Apr 2016 15:06:27 -0500 Subject: [PATCH] Revert "RT#41671 Fix double click prevention for all legacy buttons [worked previously, renamed button, still work]" This reverts commit 55daa3803103f841d0fb2b559040115908724da8. --- 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 a013da6cc..9d4afbc60 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.submitButton.disabled = false; + document.TaxAdjustmentForm.submit.disabled = false; } else { - document.TaxAdjustmentForm.submitButton.disabled = true; + document.TaxAdjustmentForm.submit.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 01a54fc52..3f0d6ba1d 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 1ff70009c..14c3f51e6 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.submitButton.disabled = false; + document.QuickChargeForm.submit.disabled = false; } else { - document.QuickChargeForm.submitButton.disabled = true; + document.QuickChargeForm.submit.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.submitButton.disabled=true; return validate_quick_charge();" + onSubmit = "document.QuickChargeForm.submit.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 57a472ec8..5bfc108c1 100644 --- a/httemplate/edit/rate.cgi +++ b/httemplate/edit/rate.cgi @@ -31,9 +31,9 @@
-" onClick="document.OneTrueForm.submitButton.disabled=true; process();"> +%>" onClick="document.OneTrueForm.submit.disabled=true; process();"> % if($rate->ratenum) { diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index e8e08cd5c..76790ab02 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 d785904cf..197ade14f 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -17,7 +17,7 @@