summaryrefslogtreecommitdiff
path: root/httemplate/edit/quick-charge.html
diff options
context:
space:
mode:
authorjeff <jeff>2009-05-29 00:22:48 +0000
committerjeff <jeff>2009-05-29 00:22:48 +0000
commit7e368366b4b1c3b6a2b1990f34d79a15289cadcc (patch)
tree3d6eb1319dc4b6084d66c3441d0c39a230f6c97c /httemplate/edit/quick-charge.html
parentba4e502ef582e72601a1548d04dd059e20735c71 (diff)
don't require a leading 0 in the quick charge amount
Diffstat (limited to 'httemplate/edit/quick-charge.html')
-rw-r--r--httemplate/edit/quick-charge.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index c18b2bc64..8aca34a0d 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -20,7 +20,7 @@ function validate_quick_charge () {
var pkg = document.QuickChargeForm.pkg.value;
var pkg_regex = /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]*)$/ ;
var amount = document.QuickChargeForm.amount.value;
- var amount_regex = /^\s*\$?\s*(\d+(\.\d{1,2})?)\s*$/ ;
+ var amount_regex = /^\s*\$?\s*(\d*(\.?\d{1,2}))\s*$/ ;
var rval = true;
if ( ! amount_regex.test(amount) ) {