aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-01-18 12:11:26 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-01-18 12:11:26 +0100
commit6a79c708526b846ccbcdf9578efc168c23261182 (patch)
tree525f564ad710170643ffb69faa1ec595aa5bd07e /ui/jquery.ui.spinner.js
parentca818beca59cd69fa790a10ace64d4dfa631ba20 (diff)
downloadjquery-ui-6a79c708526b846ccbcdf9578efc168c23261182.tar.gz
jquery-ui-6a79c708526b846ccbcdf9578efc168c23261182.zip
Spinner: Update to latest jquery-global plugin, removing the currency
workaround.
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index f444e3126..8445db74e 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -305,20 +305,14 @@ $.widget('ui.spinner', {
_parse: function(val) {
var input = val;
if (typeof val == 'string') {
- // special case for currency formatting until Globalization handles currencies
- if (this.options.numberformat == "C" && window.Globalization) {
- // parseFloat should accept number format, including currency
- var culture = Globalization.culture || Globalization.cultures['default'];
- val = val.replace(culture.numberFormat.currency.symbol, "");
- }
- val = window.Globalization && this.options.numberformat ? Globalization.parseFloat(val) : +val;
+ val = $.global && this.options.numberformat ? $.global.parseFloat(val) : +val;
}
return isNaN(val) ? null : val;
},
_format: function(num) {
var num = this.options.value;
- this.element.val( window.Globalization && this.options.numberformat ? Globalization.format(num, this.options.numberformat) : num );
+ this.element.val( $.global && this.options.numberformat ? $.global.format(num, this.options.numberformat) : num );
},
destroy: function() {