recurrence editor stuff
authorArt Cancro <ajc@citadel.org>
Thu, 16 Oct 2008 03:09:55 +0000 (03:09 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 16 Oct 2008 03:09:55 +0000 (03:09 +0000)
webcit/event.c
webcit/static/wclib.js

index ff535dbd87f8b452152b7eba34b12907d004f3b3..5bb3efb4fd87a5623d6bc4468e1617e96a490db7 100644 (file)
@@ -597,16 +597,16 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
        wprintf("<div id=\"yearday_selector\">");       /* begin 'yearday_selector' div */
 
-       wprintf("<input type=\"radio\" name=\"rryeartype\" id=\"rrmonthtype_ymday\" "
+       wprintf("<input type=\"radio\" name=\"rryeartype\" id=\"rryeartype_ymday\" "
                "%s onChange=\"RecurrenceShowHide();\">",
                ((which_rryeartype_is_preselected == 0) ? "checked" : "")
        );
        wprintf(_("every "));
        wprintf("<span id=\"ymday\">%s</span><br />", _("year on this date"));
 
-       wprintf("<input type=\"radio\" name=\"rryeartype\" id=\"rrmonthtype_ywday\" "
+       wprintf("<input type=\"radio\" name=\"rryeartype\" id=\"rryeartype_ywday\" "
                "%s onChange=\"RecurrenceShowHide();\">",
-               ((which_rrmonthtype_is_preselected == 1) ? "checked" : "")
+               ((which_rryeartype_is_preselected == 1) ? "checked" : "")
        );
 
        wprintf(_("on the "));
index aedf843e6c22d15d832382dd3398b3b4baa3850e..29875abd6da57cae4909f1b850114b88e31fd296 100644 (file)
@@ -1051,4 +1051,16 @@ function RecurrenceShowHide() {
        }
 
        $('ymday').innerHTML = 'XXXX-' + $('dtstart').value.substr(5);
+
+       if ($('rryeartype_ywday').checked) {
+               $('rrymweek').disabled = false;
+               $('rrymweekday').disabled = false;
+               $('rrymonth').disabled = false;
+       }
+       else {
+               $('rrymweek').disabled = true;
+               $('rrymweekday').disabled = true;
+               $('rrymonth').disabled = true;
+       }
+
 }