diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-07 18:45:10 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-07 18:45:10 +0100 |
commit | 8fe10dc56081aff37ee405832b808e4a80579618 (patch) | |
tree | e0ee4ba559e4b9222e5528331166921ca5962ec9 /demos/spinner/time.html | |
parent | d808f933eb6457426136ab6e319821bb25f45f7a (diff) | |
download | jquery-ui-8fe10dc56081aff37ee405832b808e4a80579618.tar.gz jquery-ui-8fe10dc56081aff37ee405832b808e4a80579618.zip |
Fix spinner demos to latest jquery-global API. Also cleanup.
Diffstat (limited to 'demos/spinner/time.html')
-rw-r--r-- | demos/spinner/time.html | 9 |
1 files changed, 4 insertions, 5 deletions
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);
});
});
|