From d65927fb45aa1c47d7f593db0142d14799b0fabf Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 14 Apr 2016 08:38:54 -0500 Subject: [PATCH] RT#41671 Fix double click prevention for all legacy buttons [renamed all from submit to submitButton] --- httemplate/browse/addr_block.cgi | 2 +- httemplate/edit/cust_main_attach.cgi | 2 +- httemplate/edit/cust_pkg_detail.html | 2 +- httemplate/edit/cust_pkg_discount.html | 2 +- httemplate/edit/cust_pkg_quantity.html | 2 +- httemplate/edit/cust_pkg_salesnum.html | 2 +- httemplate/edit/elements/ApplicationCommon.html | 6 +++--- httemplate/edit/elements/part_svc_column.html | 2 +- httemplate/edit/invoice_logo.html | 4 ++-- httemplate/edit/part_svc.cgi | 2 +- httemplate/edit/prospect_main-upload.html | 2 +- httemplate/edit/quotation_pkg_detail.html | 2 +- httemplate/elements/progress-init.html | 4 ++-- httemplate/misc/cancel_cust.html | 2 +- httemplate/misc/cancel_pkg.html | 2 +- httemplate/misc/change_pkg_start.html | 2 +- httemplate/misc/cust_bill-promised_date.html | 2 +- httemplate/misc/cust_main_note-import.cgi | 2 +- httemplate/misc/delay_susp_pkg.html | 2 +- httemplate/misc/nms-add_iface.html | 2 +- httemplate/misc/nms-add_router.html | 2 +- httemplate/misc/progress-popup.html | 8 ++++---- httemplate/misc/recharge_svc.html | 2 +- httemplate/misc/suspend_cust.html | 2 +- httemplate/misc/timeworked.html | 2 +- httemplate/misc/unhold_pkg.html | 2 +- httemplate/misc/unsuspend_cust.html | 2 +- httemplate/search/cust_pkg_svc.html | 2 +- httemplate/view/svc_acct/change_svc.html | 2 +- httemplate/view/svc_acct/change_svc_form.html | 4 ++-- 30 files changed, 38 insertions(+), 38 deletions(-) diff --git a/httemplate/browse/addr_block.cgi b/httemplate/browse/addr_block.cgi index ba40bfd43..536a4f741 100644 --- a/httemplate/browse/addr_block.cgi +++ b/httemplate/browse/addr_block.cgi @@ -111,7 +111,7 @@ $html_foot .= include( '/elements/select-agent.html', 'agent_null_right' => 'Broadband global configuration', ); $html_foot .= qq( - + ); diff --git a/httemplate/edit/cust_main_attach.cgi b/httemplate/edit/cust_main_attach.cgi index 0880c760a..ba40b307a 100755 --- a/httemplate/edit/cust_main_attach.cgi +++ b/httemplate/edit/cust_main_attach.cgi @@ -31,7 +31,7 @@
% if(! $disabled) { -"> % } % if(defined $attach and $curuser->access_right('Delete attachment')) { diff --git a/httemplate/edit/cust_pkg_detail.html b/httemplate/edit/cust_pkg_detail.html index a1a6db6d3..37a801373 100644 --- a/httemplate/edit/cust_pkg_detail.html +++ b/httemplate/edit/cust_pkg_detail.html @@ -43,7 +43,7 @@
- + diff --git a/httemplate/edit/cust_pkg_discount.html b/httemplate/edit/cust_pkg_discount.html index e1e3daede..5aece573d 100755 --- a/httemplate/edit/cust_pkg_discount.html +++ b/httemplate/edit/cust_pkg_discount.html @@ -23,7 +23,7 @@
- + diff --git a/httemplate/edit/cust_pkg_quantity.html b/httemplate/edit/cust_pkg_quantity.html index ec47ed6cb..eadd1b504 100755 --- a/httemplate/edit/cust_pkg_quantity.html +++ b/httemplate/edit/cust_pkg_quantity.html @@ -21,7 +21,7 @@
- + diff --git a/httemplate/edit/cust_pkg_salesnum.html b/httemplate/edit/cust_pkg_salesnum.html index dba2a905e..da6c0e89b 100755 --- a/httemplate/edit/cust_pkg_salesnum.html +++ b/httemplate/edit/cust_pkg_salesnum.html @@ -21,7 +21,7 @@
- + diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html index a531eaad4..9c068c18e 100644 --- a/httemplate/edit/elements/ApplicationCommon.html +++ b/httemplate/edit/elements/ApplicationCommon.html @@ -103,7 +103,7 @@ function changed(what) { dst = what.options[what.selectedIndex].value; if ( dst == '' ) { - what.form.submit.disabled=true; + what.form.submitButton.disabled=true; %if ($use_sub_dst_thing && $src_pkey eq 'crednum') { what.form.tax_button.disabled=true; what.form.clear_button.disabled=true; @@ -111,7 +111,7 @@ function changed(what) { return true; } - what.form.submit.disabled=false; + what.form.submitButton.disabled=false; %if ($use_sub_dst_thing && $src_pkey eq 'crednum') { what.form.tax_button.disabled=false; what.form.clear_button.disabled=false; @@ -373,7 +373,7 @@ function src_amount_changed () {
% $svcpart = '' if $opt{clone};
- format): -
+
% } elsif ( $mode eq 'preview' ) { @@ -71,7 +71,7 @@ % if ( $mode eq 'preview' ) {
- + % } diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index a07fc6005..fa5a81ab3 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -37,7 +37,7 @@ -- 2.11.0