PayPal seems to be ok with commas.

This commit is contained in:
Bradley M. Kuhn 2014-12-02 16:27:37 -05:00
parent 403c884489
commit 8b16abf981

View file

@ -37,7 +37,7 @@ $(document).ready(function() {
var value = input.val(); var value = input.val();
var errorElement=$("span", input.parent()); var errorElement=$("span", input.parent());
var re = /^[0-9\.]+$/; var re = /^[0-9\,\.]+$/;
var isValid = (re.test(value) && parseInt(value) >= 120); var isValid = (re.test(value) && parseInt(value) >= 120);
if (isValid) { if (isValid) {
input.removeClass("invalid").addClass("valid"); input.removeClass("invalid").addClass("valid");