]> code.citadel.org Git - citadel.git/commitdiff
* event.c: Found and removed another unquoted multi-line string literal
authorArt Cancro <ajc@citadel.org>
Thu, 23 Oct 2003 03:07:54 +0000 (03:07 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 23 Oct 2003 03:07:54 +0000 (03:07 +0000)
* webcit.h: changed an #ifdef HAVE_ICAL_H
  to #ifdef WEBCIT_WITH_CALENDAR_SERVICE to avoid false positives

webcit/ChangeLog
webcit/event.c
webcit/webcit.h

index efb5b966cb70a7d629e72499195d7bef785abd7a..4cd7a2b3193b528c81b9a0ac4065efc62f16e8c3 100644 (file)
@@ -1,4 +1,9 @@
 $Log$
+Revision 501.2  2003/10/23 03:07:54  ajc
+* event.c: Found and removed another unquoted multi-line string literal
+* webcit.h: changed an #ifdef HAVE_ICAL_H
+  to #ifdef WEBCIT_WITH_CALENDAR_SERVICE to avoid false positives
+
 Revision 501.1  2003/10/22 01:42:12  ajc
 * iconbar.c: removed a stray character or two...
 
@@ -1608,4 +1613,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index fef2275ab4440e28e4afd12fa682889b7de84ef9..2ee0040524b893cfe980dbf480544dd1a3db44f0 100644 (file)
@@ -171,33 +171,33 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
        display_icaltimetype_as_webform(&t_start, "dtstart");
 
        wprintf("<INPUT TYPE=\"checkbox\" NAME=\"alldayevent\" "
-               "VALUE=\"yes\" onClick=\"
-
-                       if (this.checked) {
-                               this.form.dtstart_hour.value='0';
-                               this.form.dtstart_hour.disabled = true;
-                               this.form.dtstart_minute.value='0';
-                               this.form.dtstart_minute.disabled = true;
-                               this.form.dtend_hour.value='0';
-                               this.form.dtend_hour.disabled = true;
-                               this.form.dtend_minute.value='0';
-                               this.form.dtend_minute.disabled = true;
-                               this.form.dtend_month.disabled = true;
-                               this.form.dtend_day.disabled = true;
-                               this.form.dtend_year.disabled = true;
-                       }
-                       else {
-                               this.form.dtstart_hour.disabled = false;
-                               this.form.dtstart_minute.disabled = false;
-                               this.form.dtend_hour.disabled = false;
-                               this.form.dtend_minute.disabled = false;
-                               this.form.dtend_month.disabled = false;
-                               this.form.dtend_day.disabled = false;
-                               this.form.dtend_year.disabled = false;
-                       }
-
-
-               \" %s >All day event",
+               "VALUE=\"yes\" onClick=\""
+""
+"                      if (this.checked) { "
+"                              this.form.dtstart_hour.value='0'; "
+"                              this.form.dtstart_hour.disabled = true; "
+"                              this.form.dtstart_minute.value='0'; "
+"                              this.form.dtstart_minute.disabled = true; "
+"                              this.form.dtend_hour.value='0'; "
+"                              this.form.dtend_hour.disabled = true; "
+"                              this.form.dtend_minute.value='0'; "
+"                              this.form.dtend_minute.disabled = true; "
+"                              this.form.dtend_month.disabled = true; "
+"                              this.form.dtend_day.disabled = true; "
+"                              this.form.dtend_year.disabled = true; "
+"                      } "
+"                      else { "
+"                              this.form.dtstart_hour.disabled = false; "
+"                              this.form.dtstart_minute.disabled = false; "
+"                              this.form.dtend_hour.disabled = false; "
+"                              this.form.dtend_minute.disabled = false; "
+"                              this.form.dtend_month.disabled = false; "
+"                              this.form.dtend_day.disabled = false; "
+"                              this.form.dtend_year.disabled = false; "
+"                      } "
+" "
+" "
+"              \" %s >All day event",
                (t_start.is_date ? "CHECKED" : "" )
        );
 
index 3be0456e9c1784a3d386993b835391f41620d98c..2d73f4e7a484b24a91a559e41d9968379b76e33c 100644 (file)
@@ -207,7 +207,7 @@ struct wcsession {
        char this_page[SIZ];            /* address of current page */
        char http_host[SIZ];            /* HTTP Host: header */
        char *preferences;
-#ifdef HAVE_ICAL_H
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
        icalcomponent **disp_cal;       /* store calendar items for display */
        long *cal_msgnum;               /* store calendar msgids for display */
        int num_cal;
@@ -393,7 +393,7 @@ int CtdlDecodeBase64(char *dest, const char *source, size_t length);
 void free_attachments(struct wcsession *sess);
 
 
-#ifdef HAVE_ICAL_H
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
 void display_edit_task(void);
 void save_task(void);
 void display_edit_event(void);