diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-04-14 08:38:54 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-04-14 08:38:54 -0500 |
commit | d65927fb45aa1c47d7f593db0142d14799b0fabf (patch) | |
tree | 2d0d6a37b90fbafe9f9b8f439edeba889a69e594 /httemplate/misc | |
parent | 55daa3803103f841d0fb2b559040115908724da8 (diff) |
RT#41671 Fix double click prevention for all legacy buttons [renamed all from submit to submitButton]
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/cancel_cust.html | 2 | ||||
-rwxr-xr-x | httemplate/misc/cancel_pkg.html | 2 | ||||
-rwxr-xr-x | httemplate/misc/change_pkg_start.html | 2 | ||||
-rw-r--r-- | httemplate/misc/cust_bill-promised_date.html | 2 | ||||
-rw-r--r-- | httemplate/misc/cust_main_note-import.cgi | 2 | ||||
-rwxr-xr-x | httemplate/misc/delay_susp_pkg.html | 2 | ||||
-rw-r--r-- | httemplate/misc/nms-add_iface.html | 2 | ||||
-rw-r--r-- | httemplate/misc/nms-add_router.html | 2 | ||||
-rw-r--r-- | httemplate/misc/progress-popup.html | 8 | ||||
-rwxr-xr-x | httemplate/misc/recharge_svc.html | 2 | ||||
-rw-r--r-- | httemplate/misc/suspend_cust.html | 2 | ||||
-rwxr-xr-x | httemplate/misc/timeworked.html | 2 | ||||
-rwxr-xr-x | httemplate/misc/unhold_pkg.html | 2 | ||||
-rw-r--r-- | httemplate/misc/unsuspend_cust.html | 2 |
14 files changed, 17 insertions, 17 deletions
diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index 85367026c..d3da6fee1 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -55,7 +55,7 @@ toggle(false); <BR> <P ALIGN="CENTER"> -<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_cust_button" VALUE="<% mt('Cancel customer') |h %>" DISABLED> +<INPUT TYPE="submit" NAME="submitButton" ID="confirm_cancel_cust_button" VALUE="<% mt('Cancel customer') |h %>" DISABLED> <INPUT TYPE="BUTTON" VALUE="<% mt("Don't cancel") |h %>" onClick="parent.cClick();"> diff --git a/httemplate/misc/cancel_pkg.html b/httemplate/misc/cancel_pkg.html index c80b2b278..bee206a13 100755 --- a/httemplate/misc/cancel_pkg.html +++ b/httemplate/misc/cancel_pkg.html @@ -91,7 +91,7 @@ </TABLE> <BR> -<INPUT TYPE="submit" NAME="submit" ID="confirm_cancel_pkg_button" +<INPUT TYPE="submit" NAME="submitButton" ID="confirm_cancel_pkg_button" VALUE="<% mt($submit) |h %>" <% $method !~ /^(resume|uncancel)$/ ? 'DISABLED' : '' %>> diff --git a/httemplate/misc/change_pkg_start.html b/httemplate/misc/change_pkg_start.html index 5a890c86e..25a3c24b9 100755 --- a/httemplate/misc/change_pkg_start.html +++ b/httemplate/misc/change_pkg_start.html @@ -47,7 +47,7 @@ &> </LI> </UL> -<INPUT TYPE="submit" NAME="submit" VALUE="<% emt('Set start date') %>"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="<% emt('Set start date') %>"> </FORM> </BODY> diff --git a/httemplate/misc/cust_bill-promised_date.html b/httemplate/misc/cust_bill-promised_date.html index 7b7b9601d..0e417a2bb 100644 --- a/httemplate/misc/cust_bill-promised_date.html +++ b/httemplate/misc/cust_bill-promised_date.html @@ -9,7 +9,7 @@ emt('Promised date'), &> </TABLE> -<INPUT TYPE="submit" NAME="submit" VALUE="<% emt('Set date') %>"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="<% emt('Set date') %>"> </FORM> <& /elements/footer.html &> <%init> diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 2e7dc8b65..12d6c36a4 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -190,7 +190,7 @@ % $row++; % } </TABLE> - <INPUT TYPE="submit" NAME="submit" ID="importsubmit" VALUE="Import notes"> + <INPUT TYPE="submit" NAME="submitButton" ID="importsubmit" VALUE="Import notes"> <INPUT TYPE="checkbox" NAME="preview" onchange="previewChanged(this);"> Preview mode % } else { diff --git a/httemplate/misc/delay_susp_pkg.html b/httemplate/misc/delay_susp_pkg.html index 02f8824b4..6167509b9 100755 --- a/httemplate/misc/delay_susp_pkg.html +++ b/httemplate/misc/delay_susp_pkg.html @@ -36,7 +36,7 @@ </TABLE> <BR> -<INPUT TYPE="submit" NAME="submit" VALUE="<% $submit %>"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="<% $submit %>"> </FORM> </BODY> diff --git a/httemplate/misc/nms-add_iface.html b/httemplate/misc/nms-add_iface.html index 11456f2e8..74e1d8342 100644 --- a/httemplate/misc/nms-add_iface.html +++ b/httemplate/misc/nms-add_iface.html @@ -10,7 +10,7 @@ Torrus Service Id ) %> <BR> -<INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_iface" VALUE="Add Interface"> +<INPUT TYPE="submit" NAME="submitButton" ID="submit_nms-add_iface" VALUE="Add Interface"> </FORM> <%init> diff --git a/httemplate/misc/nms-add_router.html b/httemplate/misc/nms-add_router.html index c32ceb84c..3a8a15074 100644 --- a/httemplate/misc/nms-add_router.html +++ b/httemplate/misc/nms-add_router.html @@ -14,7 +14,7 @@ SNMP Community String (optional) %> <BR> <BR> -<INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_router" VALUE="Add Router"> +<INPUT TYPE="submit" NAME="submitButton" ID="submit_nms-add_router" VALUE="Add Router"> </FORM> </BODY></HTML> <%init> diff --git a/httemplate/misc/progress-popup.html b/httemplate/misc/progress-popup.html index 8e2d6760b..66fe9a8a2 100644 --- a/httemplate/misc/progress-popup.html +++ b/httemplate/misc/progress-popup.html @@ -58,8 +58,8 @@ function updateStatus( status_statustext ) { document.getElementById("progress_jobnum").innerHTML = ''; % unless ( $url ) { - if ( parent.document.<%$formname%>.submit.disabled == true ) { - parent.document.<%$formname%>.submit.disabled=false; + if ( parent.document.<%$formname%>.submitButton.disabled == true ) { + parent.document.<%$formname%>.submitButton.disabled=false; } % } @@ -93,8 +93,8 @@ function updateStatus( status_statustext ) { document.getElementById("progress_bar").innerHTML = ''; document.getElementById("progress_percent").innerHTML = '<INPUT TYPE="button" VALUE="OK" onClick="<% $onClick %>">'; document.getElementById("progress_jobnum").innerHTML = ''; - if ( parent.document.<%$formname%>.submit.disabled == true ) { - parent.document.<%$formname%>.submit.disabled=false; + if ( parent.document.<%$formname%>.submitButton.disabled == true ) { + parent.document.<%$formname%>.submitButton.disabled=false; } } else { alert('XXX unknown status returned from server: ' + status); diff --git a/httemplate/misc/recharge_svc.html b/httemplate/misc/recharge_svc.html index a1732fca5..593c0fafc 100755 --- a/httemplate/misc/recharge_svc.html +++ b/httemplate/misc/recharge_svc.html @@ -37,7 +37,7 @@ </TABLE> <BR> -<INPUT TYPE="submit" NAME="submit" VALUE="Recharge"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="Recharge"> </FORM> diff --git a/httemplate/misc/suspend_cust.html b/httemplate/misc/suspend_cust.html index 83d974300..7d2c5f65f 100644 --- a/httemplate/misc/suspend_cust.html +++ b/httemplate/misc/suspend_cust.html @@ -47,7 +47,7 @@ toggle(false); <BR> <P ALIGN="CENTER"> -<INPUT TYPE="submit" NAME="submit" ID="confirm_suspend_cust_button" VALUE="<% mt('Suspend customer') |h %>" DISABLED> +<INPUT TYPE="submit" NAME="submitButton" ID="confirm_suspend_cust_button" VALUE="<% mt('Suspend customer') |h %>" DISABLED> <INPUT TYPE="BUTTON" VALUE="<% mt("Don't suspend") |h %>" onClick="parent.cClick();"> diff --git a/httemplate/misc/timeworked.html b/httemplate/misc/timeworked.html index a0cf74371..b24e31378 100755 --- a/httemplate/misc/timeworked.html +++ b/httemplate/misc/timeworked.html @@ -86,7 +86,7 @@ <INPUT TYPE="hidden" NAME="end" VALUE="<% $cgi->param('end') |h %>"> <INPUT TYPE="hidden" NAME="category" VALUE="<% $cgi->param('category') |h %>"> -<INPUT TYPE="submit" NAME="submit" VALUE="<% $title %>"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="<% $title %>"> </FORM> <% include('/elements/footer.html') %> diff --git a/httemplate/misc/unhold_pkg.html b/httemplate/misc/unhold_pkg.html index 0c110b4f9..40b55c62d 100755 --- a/httemplate/misc/unhold_pkg.html +++ b/httemplate/misc/unhold_pkg.html @@ -47,7 +47,7 @@ &> </LI> </UL> -<INPUT TYPE="submit" NAME="submit" VALUE="<% emt('Start billing') %>"> +<INPUT TYPE="submit" NAME="submitButton" VALUE="<% emt('Start billing') %>"> </FORM> </BODY> diff --git a/httemplate/misc/unsuspend_cust.html b/httemplate/misc/unsuspend_cust.html index 4555a58b3..6c2c7070d 100644 --- a/httemplate/misc/unsuspend_cust.html +++ b/httemplate/misc/unsuspend_cust.html @@ -52,7 +52,7 @@ toggle(false); <BR> <P ALIGN="CENTER"> -<INPUT TYPE="submit" NAME="submit" ID="confirm_unsuspend_cust_button" VALUE="<% mt('Unsuspend customer') |h %>"> +<INPUT TYPE="submit" NAME="submitButton" ID="confirm_unsuspend_cust_button" VALUE="<% mt('Unsuspend customer') |h %>"> <INPUT TYPE="BUTTON" VALUE="<% mt("Don't unsuspend") |h %>" onClick="parent.cClick();"> |