[freeside-commits] freeside/httemplate/misc batch-cust_pay.html, 1.16, 1.17
Erik Levinson
levinse at wavetail.420.am
Wed Jul 13 21:53:28 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv17048/httemplate/misc
Modified Files:
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.16
retrieving revision 1.17
diff -u -w -d -r1.16 -r1.17
--- batch-cust_pay.html 6 Jun 2011 19:46:58 -0000 1.16
+++ batch-cust_pay.html 14 Jul 2011 04:53:25 -0000 1.17
@@ -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