From 6a79c708526b846ccbcdf9578efc168c23261182 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 18 Jan 2011 12:11:26 +0100 Subject: Spinner: Update to latest jquery-global plugin, removing the currency workaround. --- ui/jquery.ui.spinner.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'ui/jquery.ui.spinner.js') 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() { -- cgit v1.2.3 From 29bfb86ce2e192dae456bf15655c25cb469ad977 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sun, 23 Jan 2011 17:55:53 -0500 Subject: All: Define defaultElement for non-div widgets. --- ui/jquery.ui.autocomplete.js | 1 + ui/jquery.ui.button.js | 1 + ui/jquery.ui.menu.js | 1 + ui/jquery.ui.spinner.js | 1 + 4 files changed, 4 insertions(+) (limited to 'ui/jquery.ui.spinner.js') diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 1342f7648..e62ea93fe 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -16,6 +16,7 @@ (function( $, undefined ) { $.widget( "ui.autocomplete", { + defaultElement: "", options: { appendTo: "body", delay: 300, diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index b1d060a42..8f63ec57a 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -43,6 +43,7 @@ var lastActive, }; $.widget( "ui.button", { + defaultElement: "