Created
April 12, 2017 13:36
-
-
Save chmst/a825bf5edb86b04de6b865e7a112f680 to your computer and use it in GitHub Desktop.
initCalender in 3.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var initCalendar = function() | |
{ | |
var id = $(this).attr('id'); | |
Calendar.setup({ | |
// Id of the input field | |
inputField: id, | |
// Format of the input field | |
ifFormat: "%Y-%m-%d", | |
// Trigger for the calendar (button ID) | |
button: id + "_img", | |
// Alignment (defaults to "Bl") | |
align: "Tl", | |
singleClick: true, | |
firstDay: 1 | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment