[freeside-commits] branch master updated. c8758c049e81f88d086a42c92a56a91815dbbb26

Jonathan Prykop jonathan at 420.am
Wed Apr 20 13:06:59 PDT 2016


The branch, master has been updated
       via  c8758c049e81f88d086a42c92a56a91815dbbb26 (commit)
      from  c9f53f211971dc68e3f67cd94df6138a88436bc4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c8758c049e81f88d086a42c92a56a91815dbbb26
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Wed Apr 20 15:06:27 2016 -0500

    Revert "RT#41671 Fix double click prevention for all legacy buttons [worked previously, renamed button, still work]"
    
    This reverts commit 55daa3803103f841d0fb2b559040115908724da8.

diff --git a/httemplate/edit/cust_tax_adjustment.html b/httemplate/edit/cust_tax_adjustment.html
index a013da6..9d4afbc 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 () {
 
 </SCRIPT>
 
-<FORM ACTION="process/cust_tax_adjustment.html" NAME="TaxAdjustmentForm" ID="TaxAdjustmentForm" METHOD="POST" onsubmit="document.TaxAdjustmentForm.submitButton.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 %>">
 
@@ -69,7 +69,7 @@ function validate_tax_adjustment () {
 </TABLE>
 
 <BR>
-<INPUT TYPE="submit" ID="submit" NAME="submitButton" VALUE="Add tax adjustment" <% $cgi->param('error') ? '' :' DISABLED' %>>
+<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="Add tax adjustment" <% $cgi->param('error') ? '' :' DISABLED' %>>
 
 </FORM>
 
diff --git a/httemplate/edit/prepay_credit.cgi b/httemplate/edit/prepay_credit.cgi
index 01a54fc..3f0d6ba 100644
--- a/httemplate/edit/prepay_credit.cgi
+++ b/httemplate/edit/prepay_credit.cgi
@@ -2,7 +2,7 @@
 
 <% include('/elements/error.html') %>
 
-<FORM ACTION="<%popurl(1)%>process/prepay_credit.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submitButton.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 = ''; }">
@@ -74,7 +74,7 @@ $<INPUT TYPE="text" NAME="amount" SIZE=8 MAXLENGTH=7 VALUE="<% $cgi->param('amou
 </TD></TR>
 </TABLE>
 <BR><BR>
-<INPUT TYPE="submit" NAME="submitButton" VALUE="Generate" onSubmit="this.disabled = true">
+<INPUT TYPE="submit" NAME="submit" VALUE="Generate" onSubmit="this.disabled = true">
 
 </FORM>
 
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index 1ff7000..14c3f51 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();"
 >
 
 <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');
-<INPUT TYPE="submit" ID="submit" NAME="submitButton" VALUE="<% $label %>" \
+<INPUT TYPE="submit" ID="submit" NAME="submit" VALUE="<% $label %>" \
 <% ($cgi->param('error') || $cust_pkg) ? '' :' DISABLED' %>>
 
 </FORM>
diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi
index 57a472e..5bfc108 100644
--- a/httemplate/edit/rate.cgi
+++ b/httemplate/edit/rate.cgi
@@ -31,9 +31,9 @@
 </TABLE>
 <BR>
 
-<INPUT NAME="submitButton" TYPE="button" VALUE="<% 
+<INPUT NAME="submit" TYPE="button" VALUE="<% 
   $rate->ratenum ? "Apply changes" : "Add rate plan"
-%>" onClick="document.OneTrueForm.submitButton.disabled=true; process();">
+%>" onClick="document.OneTrueForm.submit.disabled=true; process();">
 </FORM>
 
 % if($rate->ratenum) {
diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi
index e8e08cd..76790ab 100644
--- a/httemplate/edit/reg_code.cgi
+++ b/httemplate/edit/reg_code.cgi
@@ -2,7 +2,7 @@
 
 <% include('/elements/error.html') %>
 
-<FORM ACTION="<%popurl(1)%>process/reg_code.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submitButton.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
@@ -25,7 +25,7 @@ registration codes for <B><% $agent->agent %></B> allowing the following package
 
 
 <BR>
-<INPUT TYPE="submit" NAME="submitButton" VALUE="Generate">
+<INPUT TYPE="submit" NAME="submit" VALUE="Generate">
 
 </FORM>
 
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html
index d785904..197ade1 100644
--- 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 &&
-     !document.OneTrueForm.submitButton.disabled) {
+     !document.OneTrueForm.btnsubmit.disabled) {
     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,
@@ -448,7 +448,7 @@ function preload() {
 &>
 
 <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>
 
diff --git a/httemplate/misc/email-quotation.html b/httemplate/misc/email-quotation.html
index bfc64b6..64e3691 100644
--- a/httemplate/misc/email-quotation.html
+++ b/httemplate/misc/email-quotation.html
@@ -2,7 +2,7 @@
 
 <% include('/elements/error.html') %>
 
-<FORM NAME="OneTrueForm" METHOD="POST" ACTION="process/email-quotation.html" onSubmit="document.OneTrueForm.submitButton.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) %>
@@ -46,7 +46,7 @@
 
 <CENTER>
 % if ( $emails ) {
-  <BUTTON TYPE="submit" NAME="submitButton" 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>

-----------------------------------------------------------------------

Summary of changes:
 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(-)




More information about the freeside-commits mailing list