1 // (c) BenoƮt PIN 2006-2007
6 function initEventJsCalendars() {
9 // setup startDate calendar
10 startDate
["inputField"] = "startDate"; // id of the input field
11 startDate
["ifFormat"] = "%Y %m %d %H %M"; // format of the input field startDate["date"] = function() { return builDateFromInputs("startDate"); }; startDate["showsTime"] = true; // will display a time selector startDate["button"] = "showStartCal"; // trigger for the calendar (button ID) startDate["singleClick"] = false; // double-click mode startDate["showOthers"] = true; // show overlapping months startDate["weekNumbers"] = false; startDate["firstDay"] = 1; startDate["onSelect"] = splitDate;
13 Calendar
.setup(startDate
);
17 // setup endDate calendar
18 endDate
["inputField"] = "endDate"; // id of the input field
19 endDate
["ifFormat"] = "%Y %m %d %H %M"; // format of the input field endDate["date"] = function() { return builDateFromInputs("endDate"); }; endDate["showsTime"] = true; // will display a time selector endDate["button"] = "showEndCal"; // trigger for the calendar (button ID) endDate["singleClick"] = false; // double-click mode endDate["showOthers"] = true; // show overlapping months endDate["weekNumbers"] = false; endDate["firstDay"] = 1; endDate["onSelect"] = splitDate;
21 Calendar
.setup(endDate
);