diff options
author | levinse <levinse> | 2011-07-14 04:53:28 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-07-14 04:53:28 +0000 |
commit | 248bdb67a29a2c7098b4004f8d3dd8c49495dca5 (patch) | |
tree | 6e5a5e444fd4e437735a74df48b3fd9e15b4fa6b | |
parent | f24d4db1d86d11fc9233c7e21f7506cf01497ef4 (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> |