Debugged some javascript that ought to work but
authorArt Cancro <ajc@citadel.org>
Wed, 1 Oct 2008 04:07:06 +0000 (04:07 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 1 Oct 2008 04:07:06 +0000 (04:07 +0000)
breaks on Internet Exploder.  There's still a showstopping bug in there somewhere
but evidently Microsoft doesn't know that there's this wonderful thing called line
numbers, and instead just displays the helpful error message 'Content cannot be
displayed due to error 80004004'.  Still need to work on this.  Still need to put
every last Microsoft employee feet-first into a wood chipper.  Die Microsoft Die.

webcit/event.c
webcit/static/wclib.js

index 0bf990cb1f519b12fb7b44990bf07b28230c6ddb..8b6f82c111937e3d4da4cdba5221320727c5c12c 100644 (file)
@@ -419,6 +419,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                _("This is a recurring event")
        );
 
+#if 0
        wprintf("<div id=\"rrule\">\n");                /* begin 'rrule' div */
 
        wprintf("<table border=0 width=100%%>\n");      /* same table style as the event tab */
@@ -470,7 +471,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        }
        wprintf("</select>\n");
 
-       wprintf("</td></tr><tr><td> </td><td>");
+       wprintf("</td></tr><tr><td>FIXME</td><td>");
 
        wprintf("<div id=\"weekday_selector\">");       /* begin 'weekday_selector' div */
        wprintf("%s<br>", _("on these weekdays:"));
@@ -547,6 +548,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
        wprintf("</table>\n");
        wprintf("</div>\n");                            /* end 'rrule' div */
+#endif
 
        end_tab(2, 3);
 
index 09a1fb59eac76d90dc40915b468c86f9a6f06cb5..c66ec13f078a9e819e01675bf08144ebdfb77ae7 100644 (file)
@@ -967,14 +967,16 @@ function attachDatePicker(relative, wclang) {
        disableFutureDate: false,
        dateFormat: [ ["yyyy", "mm", "dd"], "-"],
        showDuration: 0.2,
-       closeEffectDuration: 0.2,
+       closeEffectDuration: 0.2
        });
        document.getElementById(relative).dpck = dpck; // attach a ref to it
 }
+
 function eventEditAllDay() {
-       var allDayCheck = document.getElementById("alldayevent");
-       var dtend= document.getElementById("dtendcell");
-       if(allDayCheck.checked) {
+       var allDayCheck = $('alldayevent');
+       var dtend = $('dtendcell');
+
+       if (allDayCheck.checked) {
                //dtend.disabled = true;
                dtend.style.textDecoration = "line-through";
        } else {
@@ -1017,5 +1019,4 @@ function RecurrenceShowHide() {
        else {
                $('rruntil').disabled = true;
        }
-
 }