projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9f53f2
)
Revert "RT#41671 Fix double click prevention for all legacy buttons [worked previousl...
author
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 20 Apr 2016 20:06:27 +0000
(15:06 -0500)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 20 Apr 2016 20:06:27 +0000
(15:06 -0500)
This reverts commit
55daa3803103f841d0fb2b559040115908724da8
.
httemplate/edit/cust_tax_adjustment.html
patch
|
blob
|
history
httemplate/edit/prepay_credit.cgi
patch
|
blob
|
history
httemplate/edit/quick-charge.html
patch
|
blob
|
history
httemplate/edit/rate.cgi
patch
|
blob
|
history
httemplate/edit/reg_code.cgi
patch
|
blob
|
history
httemplate/misc/batch-cust_pay.html
patch
|
blob
|
history
httemplate/misc/email-quotation.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/cust_tax_adjustment.html
b/httemplate/edit/cust_tax_adjustment.html
index
a013da6
..
9d4afbc
100644
(file)
--- 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 ) {
function enable_tax_adjustment () {
if ( document.TaxAdjustmentForm.amount.value
&& document.TaxAdjustmentForm.taxname.selectedIndex > 0 ) {
- document.TaxAdjustmentForm.submit
Button
.disabled = false;
+ document.TaxAdjustmentForm.submit.disabled = false;
} else {
} else {
- document.TaxAdjustmentForm.submit
Button
.disabled = true;
+ document.TaxAdjustmentForm.submit.disabled = true;
}
}
}
}
@@
-34,7
+34,7
@@
function validate_tax_adjustment () {
</SCRIPT>
</SCRIPT>
-<FORM ACTION="process/cust_tax_adjustment.html" NAME="TaxAdjustmentForm" ID="TaxAdjustmentForm" METHOD="POST" onsubmit="document.TaxAdjustmentForm.submit
Button
.disabled=true;return validate_tax_adjustment();">
+<FORM ACTION="process/cust_tax_adjustment.html" NAME="TaxAdjustmentForm" ID="TaxAdjustmentForm" METHOD="POST" onsubmit="document.TaxAdjustmentForm.submit.disabled=true;return validate_tax_adjustment();">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
@@
-69,7
+69,7
@@
function validate_tax_adjustment () {
</TABLE>
<BR>
</TABLE>
<BR>
-<INPUT TYPE="submit" ID="submit" NAME="submit
Button
" VALUE="Add tax adjustment" <% $cgi->param('error') ? '' :' DISABLED' %>>
+<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="Add tax adjustment" <% $cgi->param('error') ? '' :' DISABLED' %>>
</FORM>
</FORM>
diff --git
a/httemplate/edit/prepay_credit.cgi
b/httemplate/edit/prepay_credit.cgi
index
01a54fc
..
3f0d6ba
100644
(file)
--- a/
httemplate/edit/prepay_credit.cgi
+++ b/
httemplate/edit/prepay_credit.cgi
@@
-2,7
+2,7
@@
<% include('/elements/error.html') %>
<% include('/elements/error.html') %>
-<FORM ACTION="<%popurl(1)%>process/prepay_credit.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submit
Button
.disabled=true">
+<FORM ACTION="<%popurl(1)%>process/prepay_credit.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submit.disabled=true">
Generate
<INPUT TYPE="text" NAME="num" VALUE="<% $cgi->param('num') || '(quantity)' |h %>" SIZE=10 MAXLENGTH=10 onFocus="if ( this.value == '(quantity)' ) { this.value = ''; }">
Generate
<INPUT TYPE="text" NAME="num" VALUE="<% $cgi->param('num') || '(quantity)' |h %>" SIZE=10 MAXLENGTH=10 onFocus="if ( this.value == '(quantity)' ) { this.value = ''; }">
@@
-74,7
+74,7
@@
$<INPUT TYPE="text" NAME="amount" SIZE=8 MAXLENGTH=7 VALUE="<% $cgi->param('amou
</TD></TR>
</TABLE>
<BR><BR>
</TD></TR>
</TABLE>
<BR><BR>
-<INPUT TYPE="submit" NAME="submit
Button
" VALUE="Generate" onSubmit="this.disabled = true">
+<INPUT TYPE="submit" NAME="submit" VALUE="Generate" onSubmit="this.disabled = true">
</FORM>
</FORM>
diff --git
a/httemplate/edit/quick-charge.html
b/httemplate/edit/quick-charge.html
index
1ff7000
..
14c3f51
100644
(file)
--- 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 ) {
if ( document.QuickChargeForm.amount.value
&& document.QuickChargeForm.pkg.value ) {
- document.QuickChargeForm.submit
Button
.disabled = false;
+ document.QuickChargeForm.submit.disabled = false;
} else {
} else {
- document.QuickChargeForm.submit
Button
.disabled = true;
+ document.QuickChargeForm.submit.disabled = true;
}
% if ( $curuser->option('disable_enter_submit_onetimecharge') ) {
}
% if ( $curuser->option('disable_enter_submit_onetimecharge') ) {
@@
-97,7
+97,7
@@
function bill_now_changed (what) {
NAME = "QuickChargeForm"
ID = "QuickChargeForm"
METHOD = "POST"
NAME = "QuickChargeForm"
ID = "QuickChargeForm"
METHOD = "POST"
- onSubmit = "document.QuickChargeForm.submit
Button
.disabled=true; return validate_quick_charge();"
+ onSubmit = "document.QuickChargeForm.submit.disabled=true; return validate_quick_charge();"
>
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $cust_main ? $cust_main->custnum : '' %>">
>
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $cust_main ? $cust_main->custnum : '' %>">
@@
-362,7
+362,7
@@
function bill_now_changed (what) {
% my $label = $cust_pkg
% ? emt('Modify one-time charge')
% : emt('Add one-time charge');
% my $label = $cust_pkg
% ? emt('Modify one-time charge')
% : emt('Add one-time charge');
-<INPUT TYPE="submit" ID="submit" NAME="submit
Button
" VALUE="<% $label %>" \
+<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="<% $label %>" \
<% ($cgi->param('error') || $cust_pkg) ? '' :' DISABLED' %>>
</FORM>
<% ($cgi->param('error') || $cust_pkg) ? '' :' DISABLED' %>>
</FORM>
diff --git
a/httemplate/edit/rate.cgi
b/httemplate/edit/rate.cgi
index
57a472e
..
5bfc108
100644
(file)
--- a/
httemplate/edit/rate.cgi
+++ b/
httemplate/edit/rate.cgi
@@
-31,9
+31,9
@@
</TABLE>
<BR>
</TABLE>
<BR>
-<INPUT NAME="submit
Button
" TYPE="button" VALUE="<%
+<INPUT NAME="submit" TYPE="button" VALUE="<%
$rate->ratenum ? "Apply changes" : "Add rate plan"
$rate->ratenum ? "Apply changes" : "Add rate plan"
-%>" onClick="document.OneTrueForm.submit
Button
.disabled=true; process();">
+%>" onClick="document.OneTrueForm.submit.disabled=true; process();">
</FORM>
% if($rate->ratenum) {
</FORM>
% if($rate->ratenum) {
diff --git
a/httemplate/edit/reg_code.cgi
b/httemplate/edit/reg_code.cgi
index
e8e08cd
..
76790ab
100644
(file)
--- a/
httemplate/edit/reg_code.cgi
+++ b/
httemplate/edit/reg_code.cgi
@@
-2,7
+2,7
@@
<% include('/elements/error.html') %>
<% include('/elements/error.html') %>
-<FORM ACTION="<%popurl(1)%>process/reg_code.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submit
Button
.disabled=true">
+<FORM ACTION="<%popurl(1)%>process/reg_code.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submit.disabled=true">
<INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
Generate
<INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
Generate
@@
-25,7
+25,7
@@
registration codes for <B><% $agent->agent %></B> allowing the following package
<BR>
<BR>
-<INPUT TYPE="submit" NAME="submit
Button
" VALUE="Generate">
+<INPUT TYPE="submit" NAME="submit" VALUE="Generate">
</FORM>
</FORM>
diff --git
a/httemplate/misc/batch-cust_pay.html
b/httemplate/misc/batch-cust_pay.html
index
d785904
..
197ade1
100644
(file)
--- a/
httemplate/misc/batch-cust_pay.html
+++ b/
httemplate/misc/batch-cust_pay.html
@@
-17,7
+17,7
@@
<SCRIPT TYPE="text/javascript">
function warnUnload() {
if(document.getElementById("OneTrueTable").rows.length > 3 &&
<SCRIPT TYPE="text/javascript">
function warnUnload() {
if(document.getElementById("OneTrueTable").rows.length > 3 &&
- !document.OneTrueForm.
submitButton
.disabled) {
+ !document.OneTrueForm.
btnsubmit
.disabled) {
return "The current batch will be lost.";
}
else {
return "The current batch will be lost.";
}
else {
@@
-421,7
+421,7
@@
function preload() {
)
%>
)
%>
-<FORM ACTION="process/batch-cust_pay.cgi" NAME="OneTrueForm" METHOD="POST" onsubmit="document.OneTrueForm.
submitButton
.disabled=true;window.onbeforeunload = null;">
+<FORM ACTION="process/batch-cust_pay.cgi" NAME="OneTrueForm" METHOD="POST" onsubmit="document.OneTrueForm.
btnsubmit
.disabled=true;window.onbeforeunload = null;">
<!-- <B>Batch</B> <INPUT TYPE="text" NAME="paybatch"><BR><BR> -->
<& /elements/xmlhttp.html,
<!-- <B>Batch</B> <INPUT TYPE="text" NAME="paybatch"><BR><BR> -->
<& /elements/xmlhttp.html,
@@
-448,7
+448,7
@@
function preload() {
&>
<BR>
&>
<BR>
-<INPUT TYPE="button" VALUE="Post payment batch" name="
submitButton
" onclick="window.onbeforeunload = null; document.OneTrueForm.submit(); this.disabled = true;">
+<INPUT TYPE="button" VALUE="Post payment batch" name="
btnsubmit
" onclick="window.onbeforeunload = null; document.OneTrueForm.submit(); this.disabled = true;">
</FORM>
</FORM>
diff --git
a/httemplate/misc/email-quotation.html
b/httemplate/misc/email-quotation.html
index
bfc64b6
..
64e3691
100644
(file)
--- a/
httemplate/misc/email-quotation.html
+++ b/
httemplate/misc/email-quotation.html
@@
-2,7
+2,7
@@
<% include('/elements/error.html') %>
<% include('/elements/error.html') %>
-<FORM NAME="OneTrueForm" METHOD="POST" ACTION="process/email-quotation.html" onSubmit="document.OneTrueForm.submit
Button.disabled=true; document.OneTrueForm.submitButton
.style.display='none'; document.getElementById('emailingwait').style.display='';">
+<FORM NAME="OneTrueForm" METHOD="POST" ACTION="process/email-quotation.html" onSubmit="document.OneTrueForm.submit
.disabled=true; document.OneTrueForm.submit
.style.display='none'; document.getElementById('emailingwait').style.display='';">
<INPUT TYPE="hidden" NAME="quotationnum" VALUE="<% $quotationnum %>">
<% ntable("#cccccc", 2) %>
<INPUT TYPE="hidden" NAME="quotationnum" VALUE="<% $quotationnum %>">
<% ntable("#cccccc", 2) %>
@@
-46,7
+46,7
@@
<CENTER>
% if ( $emails ) {
<CENTER>
% if ( $emails ) {
- <BUTTON TYPE="submit" NAME="submit
Button
" ID="submit">Email quotation</BUTTON>
+ <BUTTON TYPE="submit" NAME="submit" ID="submit">Email quotation</BUTTON>
<DIV ID="emailingwait" STYLE="display:none">
<IMG SRC="<%$p%>images/wait-orange.gif"> <B>Sending...</B>
</DIV>
<DIV ID="emailingwait" STYLE="display:none">
<IMG SRC="<%$p%>images/wait-orange.gif"> <B>Sending...</B>
</DIV>