Ajout css spécifique pour ckeditor. On réduit les marges de body.
[Plinn.git] / skins / ajax_scripts / cal_and_event_script.js
1 // (c) Benoît PIN 2006-2007
2 // http://plinn.org
3 // Licence GPL
4
5
6 function initEventJsCalendars() {
7 var startDate = [];
8
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;
12
13 Calendar.setup(startDate);
14
15 var endDate = [];
16
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;
20
21 Calendar.setup(endDate);
22 }