aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-07 18:45:10 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-07 18:45:10 +0100
commit8fe10dc56081aff37ee405832b808e4a80579618 (patch)
treee0ee4ba559e4b9222e5528331166921ca5962ec9 /demos
parentd808f933eb6457426136ab6e319821bb25f45f7a (diff)
downloadjquery-ui-8fe10dc56081aff37ee405832b808e4a80579618.tar.gz
jquery-ui-8fe10dc56081aff37ee405832b808e4a80579618.zip
Fix spinner demos to latest jquery-global API. Also cleanup.
Diffstat (limited to 'demos')
-rw-r--r--demos/spinner/currency.html4
-rw-r--r--demos/spinner/decimal.html4
-rw-r--r--demos/spinner/default.html2
-rw-r--r--demos/spinner/index.html2
-rw-r--r--demos/spinner/latlong.html2
-rw-r--r--demos/spinner/overflow.html2
-rw-r--r--demos/spinner/time.html9
7 files changed, 12 insertions, 13 deletions
diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html
index 1c2f01a72..44fed4c42 100644
--- a/demos/spinner/currency.html
+++ b/demos/spinner/currency.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -18,7 +18,7 @@
$(function() {
$("#currency").change(function() {
var current = $("#spinner").spinner("value");
- Globalization.preferCulture($(this).val());
+ $.global.preferCulture($(this).val());
$("#spinner").spinner("value", current);
})
diff --git a/demos/spinner/decimal.html b/demos/spinner/decimal.html
index f396c18d2..5b4af2823 100644
--- a/demos/spinner/decimal.html
+++ b/demos/spinner/decimal.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -23,7 +23,7 @@
$("#culture").change(function() {
var current = $("#spinner").spinner("value");
- Globalization.preferCulture($(this).val());
+ $.global.preferCulture($(this).val());
$("#spinner").spinner("value", current);
})
});
diff --git a/demos/spinner/default.html b/demos/spinner/default.html
index d33f3e241..14e0cf9f9 100644
--- a/demos/spinner/default.html
+++ b/demos/spinner/default.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
diff --git a/demos/spinner/index.html b/demos/spinner/index.html
index a49fa1368..c1b9d9288 100644
--- a/demos/spinner/index.html
+++ b/demos/spinner/index.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<title>jQuery UI Spinner Demos</title>
diff --git a/demos/spinner/latlong.html b/demos/spinner/latlong.html
index 7decacbdc..a99caa67b 100644
--- a/demos/spinner/latlong.html
+++ b/demos/spinner/latlong.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
diff --git a/demos/spinner/overflow.html b/demos/spinner/overflow.html
index 8f489646a..bbdc18437 100644
--- a/demos/spinner/overflow.html
+++ b/demos/spinner/overflow.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
diff --git a/demos/spinner/time.html b/demos/spinner/time.html
index 8c5560507..d92b942dc 100644
--- a/demos/spinner/time.html
+++ b/demos/spinner/time.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -24,21 +24,20 @@
_parse: function(value) {
if (typeof value == 'string') {
- return +Globalization.parseDate(value)
+ return +$.global.parseDate(value)
}
return value;
},
_format: function() {
- this.element.val( Globalization.format(new Date(this.options.value), "t") );
+ this.element.val( $.global.format(new Date(this.options.value), "t") );
}
})
$(function() {
$("#spinner").timespinner();
-
$("#culture").change(function() {
var current = $("#spinner").timespinner("value");
- Globalization.preferCulture($(this).val());
+ $.global.preferCulture($(this).val());
$("#spinner").timespinner("value", current);
});
});