]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
More recurrence editor code
[citadel.git] / webcit / calendar.c
index 8d41f02d4c4c5c69a1fe6857cbe5f6d8799504c2..b3200fcb23209708d3247736885f66fefe49399e 100644 (file)
@@ -472,8 +472,6 @@ void display_individual_cal(icalcomponent *cal, long msgnum, char *from, int unr
            Cal, 
            delete_cal);
 
-#ifdef TECH_PREVIEW
-
        /* handle recurring events */
 
        if (icaltime_is_null_time(dtstart)) return;     /* Can't recur without a start time */
@@ -485,8 +483,7 @@ void display_individual_cal(icalcomponent *cal, long msgnum, char *from, int unr
        /*
         * Just let libical iterate the recurrence, and keep looping back to the top of this function,
         * adding new hash entries that all point back to the same msgnum, until either the iteration
-        * stops or some outer bound is reached.  The display code *should* automatically do the right
-        * thing (but we'll have to see).
+        * stops or some outer bound is reached.  The display code will automatically do the Right Thing.
         */
 
        rrule = icalcomponent_get_first_property(Cal->cal, ICAL_RRULE_PROPERTY);
@@ -541,8 +538,6 @@ void display_individual_cal(icalcomponent *cal, long msgnum, char *from, int unr
        }
        lprintf(9, "Performed %d recurrences; final one is %s", num_recur, ctime(&final_recurrence));
 
-#endif /* TECH_PREVIEW */
-
 }
 
 
@@ -642,7 +637,7 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch
        }
        else
                IcalTime = icaltime_current_time_with_zone(get_default_icaltimezone());
-       display_icaltimetype_as_webform(&IcalTime, "dtstart");
+       display_icaltimetype_as_webform(&IcalTime, "dtstart", 0);
        wprintf("</TD></TR>\n");
 
        wprintf("<TR><TD>");
@@ -663,7 +658,7 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch
        }
        else
                IcalTime = icaltime_current_time_with_zone(get_default_icaltimezone());
-       display_icaltimetype_as_webform(&IcalTime, "due");
+       display_icaltimetype_as_webform(&IcalTime, "due", 0);
                
        wprintf("</TD></TR>\n");
        todoStatus = icalcomponent_get_status(vtodo);
@@ -1077,7 +1072,7 @@ void save_event(void) {
 /*
  * Anonymous request of freebusy data for a user
  */
-void do_freebusy(char *req) {
+void do_freebusy(const char *req) {
        char who[SIZ];
        char buf[SIZ];
        int len;