mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-13 00:50:27 +00:00
32 lines
805 B
JavaScript
32 lines
805 B
JavaScript
var UIDatepaginator = function () {
|
|
|
|
return {
|
|
|
|
//main function to initiate the module
|
|
init: function () {
|
|
|
|
//sample #1
|
|
$('#datepaginator_sample_1').datepaginator();
|
|
|
|
//sample #2
|
|
$('#datepaginator_sample_2').datepaginator({
|
|
size: "large"
|
|
});
|
|
|
|
//sample #3
|
|
$('#datepaginator_sample_3').datepaginator({
|
|
size: "small"
|
|
});
|
|
|
|
//sample #3
|
|
$('#datepaginator_sample_4').datepaginator({
|
|
onSelectedDateChanged: function(event, date) {
|
|
alert("Selected date: " + moment(date).format("Do, MMM YYYY"));
|
|
}
|
|
});
|
|
|
|
} // end init
|
|
|
|
};
|
|
|
|
}(); |