From bc3d283d2c1547ac3d8b5aeb894b2e6290e2d3c6 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 23 Oct 2010 01:51:12 +0200 Subject: [PATCH] Replaced hexadecimal demo with decimal demo. Updated that and the currency demo (previously donation) to use globalization plugin with a select for three different cultures (probably more to come). Updated spinner widget to use Globalization when available, replacing all number formatting related options with a single numberformat option. --- demos/spinner/currency.html | 62 ++ demos/spinner/decimal.html | 58 ++ demos/spinner/donation.html | 74 -- demos/spinner/hexadecimal.html | 37 - demos/spinner/index.html | 4 +- external/glob.de-DE.js | 55 ++ external/glob.ja-JP.js | 74 ++ external/glob.js | 1333 ++++++++++++++++++++++++++++++++ ui/jquery.ui.spinner.js | 174 ++--- 9 files changed, 1628 insertions(+), 243 deletions(-) create mode 100644 demos/spinner/currency.html create mode 100644 demos/spinner/decimal.html delete mode 100644 demos/spinner/donation.html delete mode 100644 demos/spinner/hexadecimal.html create mode 100644 external/glob.de-DE.js create mode 100644 external/glob.ja-JP.js create mode 100644 external/glob.js diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html new file mode 100644 index 00000000000..418dca22808 --- /dev/null +++ b/demos/spinner/currency.html @@ -0,0 +1,62 @@ + + + + + jQuery UI Spinner - Default functionality + + + + + + + + + + + + + + + +
+ +

+ + +

+

+ + +

+
+ +
+

+ Example of a donation form, with currency selection and amout spinner. +

+
+ + + diff --git a/demos/spinner/decimal.html b/demos/spinner/decimal.html new file mode 100644 index 00000000000..82d0fcc201b --- /dev/null +++ b/demos/spinner/decimal.html @@ -0,0 +1,58 @@ + + + + + jQuery UI Spinner - decimal + + + + + + + + + + + + + + + +
+

+ + +

+

+ + +

+
+ +
+

+ Example of a decimal spinner. Step is set to 0.01. +
The code handling the culture change reads the current spinner value, + then changes the culture, then sets the value again, resulting in an updated + formatting, based on the new culture. +

+
+ + + diff --git a/demos/spinner/donation.html b/demos/spinner/donation.html deleted file mode 100644 index 617570b1206..00000000000 --- a/demos/spinner/donation.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - jQuery UI Spinner - Default functionality - - - - - - - - - - - - -
- -

- - -

-

- - -

-
- -
-

-Example of a donation form, with currency selection and amout spinner. -

-
- - - diff --git a/demos/spinner/hexadecimal.html b/demos/spinner/hexadecimal.html deleted file mode 100644 index 03952a62dd4..00000000000 --- a/demos/spinner/hexadecimal.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - jQuery UI Spinner - Hexadecimal - - - - - - - - - - - - -
- -

- - -

-
- -
-

-Example of a hexadecimal spinner. -

-
- - - diff --git a/demos/spinner/index.html b/demos/spinner/index.html index 6d7b980bd85..68716ac99ac 100644 --- a/demos/spinner/index.html +++ b/demos/spinner/index.html @@ -9,8 +9,8 @@

Examples