aboutsummaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-01-18 14:16:13 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-01-18 14:16:13 +0100
commit086131b937b3b71a272a4521932a3c44a399261b (patch)
tree9ea742f3b376b71036f6cbd6aa3d5f82e82a100e /external
parent6a79c708526b846ccbcdf9578efc168c23261182 (diff)
downloadjquery-ui-086131b937b3b71a272a4521932a3c44a399261b.tar.gz
jquery-ui-086131b937b3b71a272a4521932a3c44a399261b.zip
Update to latest jquery-global plugin
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;