diff options
author | levinse <levinse> | 2011-07-14 04:53:25 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-07-14 04:53:25 +0000 |
commit | 3d2e1d9b5d1883f768f5a90e0dfaae7cc9a41367 (patch) | |
tree | 4fa7083b6b838e7ed58659329620a79448f6997d | |
parent | 5d5e7f7248d786938c08c867c9ad8f855f92c532 (diff) |
prevent Enter from submitting quick payment form, RT13651
-rw-r--r-- | httemplate/misc/batch-cust_pay.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 20ea92f37..11fdeee61 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -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 @@ function select_discount_term(row, prefix) { ) %> -<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 @@ function select_discount_term(row, prefix) { ) %> -<!-- <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> |