aboutsummaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/jquery.global.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/jquery.global.js b/external/jquery.global.js
index 8aac5fdbe..29ae5c637 100644
--- a/external/jquery.global.js
+++ b/external/jquery.global.js
@@ -152,6 +152,12 @@ Globalization.parseInt = function(value, radix, culture) {
return Math.floor( this.parseFloat( value, radix, culture ) );
}
Globalization.parseFloat = function(value, radix, culture) {
+ // make radix optional
+ if (typeof radix === "string") {
+ culture = radix;
+ radix = 10;
+ }
+
culture = this.findClosestCulture( culture );
var ret = NaN,
nf = culture.numberFormat;