From: Art Cancro Date: Thu, 9 Oct 2008 21:15:30 +0000 (+0000) Subject: recurrence editor X-Git-Tag: v7.86~1864 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a86147a7b23d56c421d21bc2bff90594fb9adba7 recurrence editor --- diff --git a/webcit/event.c b/webcit/event.c index a5cd217d8..fb49aeaeb 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -421,7 +421,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("
\n"); /* begin 'rrule_div' div */ - wprintf("\n"); /* same table style as the event tab */ + wprintf("
\n"); /* Table row displaying raw RRULE data, FIXME remove when finished */ if (rrule) { @@ -492,6 +492,29 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, } wprintf("\n"); /* end 'weekday_selector' div */ + + int which_rrmonthtype_is_preselected = 0; /* FIXME */ + + wprintf("
"); /* begin 'monthday_selector' div */ + + wprintf("", + ((which_rrmonthtype_is_preselected == 0) ? "checked" : "") + ); + wprintf("on day FIXME of the month"); /* FIXME */ + wprintf("
\n"); + + wprintf("", + ((which_rrmonthtype_is_preselected == 1) ? "checked" : "") + ); + wprintf("on the FIXME FIXME of the month"); /* FIXME */ + wprintf("
\n"); + + wprintf("
\n"); /* end 'monthday_selector' div */ + + + wprintf("\n"); diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index bccc22deb..b953edfbb 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -1006,6 +1006,13 @@ function RecurrenceShowHide() { $('weekday_selector').style.display = 'none'; } + if ($('freq_selector').selectedIndex == 5) { + $('monthday_selector').style.display = 'block'; + } + else { + $('monthday_selector').style.display = 'none'; + } + if ($('rrend_count').checked) { $('rrcount').disabled = false; }