jQueryUI: Tidy up and up to gotoCurrent

This commit is contained in:
John Reilly committed 2014-04-25 09:57:57 +01:00
1 parent 79a48d8772
commit 4d233b7151
2 files changed
+95 -20

No files matched your search

+27
View File
@@ -1362,6 +1362,33 @@ function test_datepicker() {
$set = $(".selector").datepicker("option", "defaultDate", new Date());
$set = $(".selector").datepicker("option", "defaultDate", "+1m +7d");
}
function duration() {
$(".selector").datepicker({ duration: "slow" });
var duration: string = $(".selector").datepicker("option", "duration");
// setter
var $set: JQuery = $(".selector").datepicker("option", "duration", "slow");
}
function firstDay() {
$(".selector").datepicker({ firstDay: 1 });
var firstDay: number = $(".selector").datepicker("option", "firstDay");
// setter
var $set: JQuery = $(".selector").datepicker("option", "firstDay", 1);
}
function gotoCurrent() {
$(".selector").datepicker({ gotoCurrent: true });
var gotoCurrent: boolean = $(".selector").datepicker("option", "gotoCurrent");
// setter
var $set: JQuery = $(".selector").datepicker("option", "gotoCurrent", true);
}
}