Skip to content
Permalink
Browse files

Fix spinner demos to latest jquery-global API. Also cleanup.

  • Loading branch information
jzaefferer committed Feb 7, 2011
1 parent d808f93 commit 8fe10dc56081aff37ee405832b808e4a80579618
@@ -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);
})
@@ -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);
})
});
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>jQuery UI Spinner Demos</title>
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -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);
});
});

0 comments on commit 8fe10dc

Please sign in to comment.
You can’t perform that action at this time.