Initial Release of the calendar plugin

This commit is contained in:
Tobias Hößl 2012-06-03 18:19:28 +00:00
parent 45cc9885fc
commit 7115197a33
561 changed files with 189494 additions and 0 deletions

25
dav/common/wdcal.js Normal file
View file

@ -0,0 +1,25 @@
function wdcal_edit_init(dateFormat) {
"use strict";
$("#cal_color").colorPicker();
$("#cal_start_time").timePicker({ step: 15 });
$("#cal_end_time").timePicker();
$("#cal_start_date").datepicker({
"dateFormat": dateFormat
});
$("#cal_end_date").datepicker({
"dateFormat": dateFormat
});
$("#notification").on("click change", function() {
if ($(this).prop("checked")) $("#notification_detail").show();
else ($("#notification_detail")).hide();
}).change();
$("#cal_allday").on("click change", function() {
if ($(this).prop("checked")) $("#cal_end_time, #cal_start_time").hide();
else $("#cal_end_time, #cal_start_time").show();
}).change();
}