[freeside-commits] freeside/httemplate/edit quick-charge.html, 1.12, 1.13
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu May 28 17:22:50 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv3817
Modified Files:
quick-charge.html
Log Message:
don't require a leading 0 in the quick charge amount
Index: quick-charge.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/quick-charge.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- quick-charge.html 17 Feb 2009 02:02:00 -0000 1.12
+++ quick-charge.html 29 May 2009 00:22:47 -0000 1.13
@@ -20,7 +20,7 @@
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) ) {
More information about the freeside-commits
mailing list