ソースを参照

Replace ',' with '.' to validate decimal numbers correct.

Johan Rönn 11 年 前
コミット
e05a96b99a

+ 1 - 0
src/js/validator/between.js

@@ -47,6 +47,7 @@
             if (value === '') {
                 return true;
             }
+			value = value.replace(',','.');
             if (!$.isNumeric(value)) {
                 return false;
             }

+ 1 - 0
src/js/validator/greaterThan.js

@@ -44,6 +44,7 @@
             if (value === '') {
                 return true;
             }
+			value = value.replace(',','.');
             if (!$.isNumeric(value)) {
                 return false;
             }

+ 1 - 0
src/js/validator/lessThan.js

@@ -44,6 +44,7 @@
             if (value === '') {
                 return true;
             }
+			value = value.replace(',','.');
             if (!$.isNumeric(value)) {
                 return false;
             }