[freeside-commits] freeside/httemplate/misc batch-cust_pay.html, 1.14.2.2, 1.14.2.3

Erik Levinson levinse at wavetail.420.am
Wed Jul 13 21:53:30 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv17057/httemplate/misc

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	batch-cust_pay.html 
Log Message:
prevent Enter from submitting quick payment form, RT13651

Index: batch-cust_pay.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/batch-cust_pay.html,v
retrieving revision 1.14.2.2
retrieving revision 1.14.2.3
diff -u -w -d -r1.14.2.2 -r1.14.2.3
--- batch-cust_pay.html	6 Jun 2011 19:46:59 -0000	1.14.2.2
+++ batch-cust_pay.html	14 Jul 2011 04:53:28 -0000	1.14.2.3
@@ -5,7 +5,7 @@
 <SCRIPT TYPE="text/javascript">
 function warnUnload() {
   if(document.getElementById("OneTrueTable").rows.length > 3 &&
-     !document.OneTrueForm.submit.disabled) {
+     !document.OneTrueForm.btnsubmit.disabled) {
     return "The current batch will be lost.";
   }
   else {
@@ -54,7 +54,7 @@
            )
 %>
 
-<FORM ACTION="process/batch-cust_pay.cgi" NAME="OneTrueForm" METHOD="POST" onsubmit="document.OneTrueForm.submit.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> -->
 
@@ -73,11 +73,8 @@
           )
 %>
 
-<!-- <BR>
-<INPUT TYPE="button" VALUE="TEST addrow" onclick="addRow()"> -->
-
 <BR>
-<INPUT TYPE="submit" NAME="submit" VALUE="Post payment batch">
+<INPUT TYPE="button" VALUE="Post payment batch" name="btnsubmit" onclick="window.onbeforeunload = null; document.OneTrueForm.submit(); this.disabled = true;">
 
 </FORM>
 



More information about the freeside-commits mailing list