aboutsummaryrefslogtreecommitdiffstats
path: root/demos/spinner
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-08-10 14:55:16 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-08-10 14:55:16 +0200
commit56e9cd71190a65c73023d6a631f7fd37c40f4167 (patch)
treeb589e868fa38a8ce622d378968bfcd488c0fe635 /demos/spinner
parentbb79b418717bbd4b2ae800fc8c6bbe39682a2283 (diff)
downloadjquery-ui-56e9cd71190a65c73023d6a631f7fd37c40f4167.tar.gz
jquery-ui-56e9cd71190a65c73023d6a631f7fd37c40f4167.zip
Replace $.global with Globalize, update Spinner to use it. Related demos currently broken due to previous changes.
Diffstat (limited to 'demos/spinner')
-rw-r--r--demos/spinner/currency.html12
-rw-r--r--demos/spinner/decimal.html10
-rw-r--r--demos/spinner/time.html10
3 files changed, 16 insertions, 16 deletions
diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html
index 18d479de8..f73c19f80 100644
--- a/demos/spinner/currency.html
+++ b/demos/spinner/currency.html
@@ -6,9 +6,9 @@
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
- <script src="../../external/jquery.global.js"></script>
- <script src="../../external/jquery.global.de-DE.js"></script>
- <script src="../../external/jquery.global.ja-JP.js"></script>
+ <script src="../../external/globalize.js"></script>
+ <script src="../../external/globalize.culture.de-DE.js"></script>
+ <script src="../../external/globalize.culture.ja-JP.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
@@ -18,7 +18,7 @@
$(function() {
$( "#currency" ).change(function() {
var current = $( "#spinner" ).spinner( "value" );
- $.global.preferCulture( $(this).val() );
+ Globalize.culture( $(this).val() );
$( "#spinner" ).spinner( "value", current );
});
@@ -28,7 +28,7 @@
step: 25,
start: 1000,
numberFormat: "C"
- });
+ });
});
</script>
</head>
@@ -42,7 +42,7 @@
<option value="en-US">US $</option>
<option value="de-DE">EUR €</option>
<option value="ja-JP">YEN ¥</option>
- </select>
+ </select>
</p>
<p>
<label for="spinner">Amount to donate:</label>
diff --git a/demos/spinner/decimal.html b/demos/spinner/decimal.html
index 70e0e99fd..9d96613fe 100644
--- a/demos/spinner/decimal.html
+++ b/demos/spinner/decimal.html
@@ -6,9 +6,9 @@
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
- <script src="../../external/jquery.global.js"></script>
- <script src="../../external/jquery.global.de-DE.js"></script>
- <script src="../../external/jquery.global.ja-JP.js"></script>
+ <script src="../../external/globalize.js"></script>
+ <script src="../../external/globalize.culture.de-DE.js"></script>
+ <script src="../../external/globalize.culture.ja-JP.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
@@ -19,11 +19,11 @@
$( "#spinner" ).spinner({
step: 0.01,
numberFormat: "n"
- });
+ });
$( "#culture" ).change(function() {
var current = $( "#spinner" ).spinner( "value" );
- $.global.preferCulture( $(this).val() );
+ Globalize.culture( $(this).val() );
$( "#spinner" ).spinner( "value", current );
});
});
diff --git a/demos/spinner/time.html b/demos/spinner/time.html
index 5a3c3767e..860ae3f48 100644
--- a/demos/spinner/time.html
+++ b/demos/spinner/time.html
@@ -6,8 +6,8 @@
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
- <script src="../../external/jquery.global.js"></script>
- <script src="../../external/jquery.global.de-DE.js"></script>
+ <script src="../../external/globalize.js"></script>
+ <script src="../../external/globalize.culture.de-DE.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
@@ -24,13 +24,13 @@
_parse: function( value ) {
if ( typeof value === "string" ) {
- return +$.global.parseDate( value );
+ return +Globalize.parseDate( value );
}
return value;
},
_format: function() {
- this.element.val( $.global.format( new Date(this.options.value), "t" ) );
+ this.element.val( Globalize.format( new Date(this.options.value), "t" ) );
}
});
@@ -39,7 +39,7 @@
$( "#culture" ).change(function() {
var current = $( "#spinner" ).timespinner( "value" );
- $.global.preferCulture( $(this).val() );
+ Globalize.culture( $(this).val() );
$( "#spinner" ).timespinner( "value", current );
});
});