mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fix spinner demos to latest jquery-global API. Also cleanup.
This commit is contained in:
parent
d808f933eb
commit
8fe10dc560
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -18,7 +18,7 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
$("#currency").change(function() {
|
$("#currency").change(function() {
|
||||||
var current = $("#spinner").spinner("value");
|
var current = $("#spinner").spinner("value");
|
||||||
Globalization.preferCulture($(this).val());
|
$.global.preferCulture($(this).val());
|
||||||
$("#spinner").spinner("value", current);
|
$("#spinner").spinner("value", current);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
$("#culture").change(function() {
|
$("#culture").change(function() {
|
||||||
var current = $("#spinner").spinner("value");
|
var current = $("#spinner").spinner("value");
|
||||||
Globalization.preferCulture($(this).val());
|
$.global.preferCulture($(this).val());
|
||||||
$("#spinner").spinner("value", current);
|
$("#spinner").spinner("value", current);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>jQuery UI Spinner Demos</title>
|
<title>jQuery UI Spinner Demos</title>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -24,21 +24,20 @@
|
|||||||
|
|
||||||
_parse: function(value) {
|
_parse: function(value) {
|
||||||
if (typeof value == 'string') {
|
if (typeof value == 'string') {
|
||||||
return +Globalization.parseDate(value)
|
return +$.global.parseDate(value)
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
_format: function() {
|
_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() {
|
$(function() {
|
||||||
$("#spinner").timespinner();
|
$("#spinner").timespinner();
|
||||||
|
|
||||||
|
|
||||||
$("#culture").change(function() {
|
$("#culture").change(function() {
|
||||||
var current = $("#spinner").timespinner("value");
|
var current = $("#spinner").timespinner("value");
|
||||||
Globalization.preferCulture($(this).val());
|
$.global.preferCulture($(this).val());
|
||||||
$("#spinner").timespinner("value", current);
|
$("#spinner").timespinner("value", current);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user