projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be4379d
)
RT#41671 Fix double click prevention for all legacy buttons [full-on fixes]
author
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 14 Apr 2016 13:10:48 +0000
(08:10 -0500)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 14 Apr 2016 13:48:09 +0000
(08:48 -0500)
httemplate/edit/cust_refund.cgi
patch
|
blob
|
history
httemplate/misc/tax-fetch_and_import.cgi
patch
|
blob
|
history
httemplate/misc/tax-fetch_and_replace.cgi
patch
|
blob
|
history
httemplate/search/elements/cust_pay_or_refund.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/cust_refund.cgi
b/httemplate/edit/cust_refund.cgi
index
bfcbfe7
..
32da454
100755
(executable)
--- a/
httemplate/edit/cust_refund.cgi
+++ b/
httemplate/edit/cust_refund.cgi
@@
-10,7
+10,7
@@
<% small_custview($custnum, $conf->config('countrydefault')) %>
% }
<% small_custview($custnum, $conf->config('countrydefault')) %>
% }
-<FORM NAME="RefundForm" ACTION="<% $p1 %>process/cust_refund.cgi" METHOD=POST onSubmit="document.RefundForm.submit.disabled=true">
+<FORM NAME="RefundForm" ACTION="<% $p1 %>process/cust_refund.cgi" METHOD=POST onSubmit="document.RefundForm.submit
Button
.disabled=true">
<INPUT TYPE="hidden" NAME="popup" VALUE="<% $link %>">
<INPUT TYPE="hidden" NAME="refundnum" VALUE="">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
<INPUT TYPE="hidden" NAME="popup" VALUE="<% $link %>">
<INPUT TYPE="hidden" NAME="refundnum" VALUE="">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
@@
-116,7
+116,7
@@
</TABLE>
<BR>
</TABLE>
<BR>
-<INPUT TYPE="submit" ID="confirm_refund_button" VALUE="<% mt('Post refund') |h %>" DISABLED>
+<INPUT TYPE="submit"
NAME="submitButton"
ID="confirm_refund_button" VALUE="<% mt('Post refund') |h %>" DISABLED>
</FORM>
</FORM>
diff --git
a/httemplate/misc/tax-fetch_and_import.cgi
b/httemplate/misc/tax-fetch_and_import.cgi
index
33a6c9b
..
970d47c
100644
(file)
--- a/
httemplate/misc/tax-fetch_and_import.cgi
+++ b/
httemplate/misc/tax-fetch_and_import.cgi
@@
-29,8
+29,9
@@
Import a tax data update.
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
<INPUT TYPE = "submit"
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
<INPUT TYPE = "submit"
+ NAME = "submitButton"
VALUE = "Download and Import"
VALUE = "Download and Import"
- onClick = "document.TaxRateImport.submit.disabled=true; process();"
+ onClick = "document.TaxRateImport.submit
Button
.disabled=true; process();"
>
</TD>
</TR>
>
</TD>
</TR>
diff --git
a/httemplate/misc/tax-fetch_and_replace.cgi
b/httemplate/misc/tax-fetch_and_replace.cgi
index
3290a3c
..
ff64e63
100644
(file)
--- a/
httemplate/misc/tax-fetch_and_replace.cgi
+++ b/
httemplate/misc/tax-fetch_and_replace.cgi
@@
-29,8
+29,9
@@
Replace tax data.
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
<INPUT TYPE = "submit"
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
<INPUT TYPE = "submit"
+ NAME = "submitButton"
VALUE = "Download and Import"
VALUE = "Download and Import"
- onClick = "document.TaxRateImport.submit.disabled=true; process();"
+ onClick = "document.TaxRateImport.submit
Button
.disabled=true; process();"
>
</TD>
</TR>
>
</TD>
</TR>
diff --git
a/httemplate/search/elements/cust_pay_or_refund.html
b/httemplate/search/elements/cust_pay_or_refund.html
index
7d7fb73
..
b07f5e9
100755
(executable)
--- a/
httemplate/search/elements/cust_pay_or_refund.html
+++ b/
httemplate/search/elements/cust_pay_or_refund.html
@@
-63,7
+63,7
@@
Examples:
sub { sprintf($money, $_[0]->$amount_field) },
],
'total_row' => [ '<B>Total</B>',
sub { sprintf($money, $_[0]->$amount_field) },
],
'total_row' => [ '<B>Total</B>',
- sub {
warn Dumper @_;
sprintf("<B>$money</B>", $_[0]->$amount_field) },
+ sub { sprintf("<B>$money</B>", $_[0]->$amount_field) },
],
'show_combined' => 1,
&>
],
'show_combined' => 1,
&>