From 4f9bd64a2ca2df17077d0f6574ff9f41adcdf2ae Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 1 Oct 2008 04:07:06 +0000 Subject: [PATCH] Debugged some javascript that ought to work but 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 | 4 +++- webcit/static/wclib.js | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/webcit/event.c b/webcit/event.c index 0bf990cb1..8b6f82c11 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -419,6 +419,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, _("This is a recurring event") ); +#if 0 wprintf("
\n"); /* begin 'rrule' div */ wprintf("\n"); /* same table style as the event tab */ @@ -470,7 +471,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, } wprintf("\n"); - wprintf("
"); + wprintf("
FIXME"); wprintf("
"); /* begin 'weekday_selector' div */ wprintf("%s
", _("on these weekdays:")); @@ -547,6 +548,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("
\n"); wprintf("
\n"); /* end 'rrule' div */ +#endif end_tab(2, 3); diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index 09a1fb59e..c66ec13f0 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -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; } - } -- 2.30.2