More recurrence editor stuff
authorArt Cancro <ajc@citadel.org>
Tue, 14 Oct 2008 21:39:00 +0000 (21:39 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Oct 2008 21:39:00 +0000 (21:39 +0000)
webcit/event.c
webcit/static/wclib.js

index 55e4cc98a30f1858f34b782f0e56a452c5358fab..6c82bf611107877eb5258f8b24bc8f4e5e8e4cd1 100644 (file)
@@ -504,8 +504,10 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        wprintf("</div>\n");                            /* end 'weekday_selector' div */
 
 
-       int which_rrmonthtype_is_preselected = 0;       /* FIXME set default correctly */
 
+
+
+       int which_rrmonthtype_is_preselected = 0;
        wprintf("<div id=\"monthday_selector\">");      /* begin 'monthday_selector' div */
 
        wprintf("<input type=\"radio\" name=\"rrmonthtype\" id=\"rrmonthtype_mday\" "
@@ -569,6 +571,16 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
 
 
+       int which_rryeartype_is_preselected = 0;        /* FIXME set default correctly */
+       wprintf("<div id=\"yearday_selector\">");       /* begin 'yearday_selector' div */
+
+       wprintf("(X) every (99) (Octobuary)<br />");                    /* FIXME */
+       wprintf("(X) on the (Grelfth) (Funday) of (Octobuary)<br />");  /* FIXME */
+
+       wprintf("</div>\n");                            /* end 'yearday_selector' div */
+
+
+
        wprintf("</td></tr>\n");
 
 
index c5a446e13db59c1f3067899dddddbbc823fbb5cd..6fc8f455f36a7e3e829b84a69da10beadd40cd05 100644 (file)
@@ -1043,4 +1043,11 @@ function RecurrenceShowHide() {
                $('rrmweekday').disabled = true;
        }
 
+       if ($('freq_selector').selectedIndex == 6) {
+               $('yearday_selector').style.display = 'block';
+       }
+       else {
+               $('yearday_selector').style.display = 'none';
+       }
+
 }