mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Fix decimal parsing, add php5-intl locale support (#458)
This commit is contained in:
@@ -44,4 +44,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
$.validator.methods.number = function (value, element) {
|
||||
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:[\s\.,]\d{3})+)(?:[\.,]\d+)?$/.test(value);
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user