mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-17 13:58:49 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
25
dav/common/wdcal.js
Normal file
25
dav/common/wdcal.js
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue