]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar_tools.c
* "All day event" shows as a single checkbox, instead of one for the start
[citadel.git] / webcit / calendar_tools.c
index 49fbcb7642310420283712fec97cf6b07b1bf691..10d898baf404eca8b303c82f8d979258ec448f8e 100644 (file)
@@ -110,11 +110,6 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) {
                );
        }
        wprintf("</SELECT>\n");
-
-       wprintf("<INPUT TYPE=\"checkbox\" NAME=\"%s_alldayevent\" "
-               "VALUE=\"yes\" %s> All day event",
-               prefix,
-               ((t->is_date) ? "CHECKED" : ""));
 }
 
 
@@ -132,13 +127,6 @@ struct icaltimetype icaltime_from_webform(char *prefix) {
        sprintf(vname, "%s_hour", prefix);      t.hour = atoi(bstr(vname));
        sprintf(vname, "%s_minute", prefix);    t.minute = atoi(bstr(vname));
 
-       sprintf(vname, "%s_alldayevent", prefix);
-       if (!strcasecmp(bstr(vname), "yes")) {
-               t.hour = 0;
-               t.minute = 0;
-               t.is_date = 1;
-       }
-
        t = icaltime_normalize(t);
        return(t);
 }