javascript fun for recurrence editor
authorArt Cancro <ajc@citadel.org>
Wed, 24 Sep 2008 04:02:20 +0000 (04:02 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 24 Sep 2008 04:02:20 +0000 (04:02 +0000)
webcit/event.c
webcit/static/wclib.js

index dcce662e2cf2b3774984dc25a87b46d2a526b6f2..cb1162e03ec5bb5246f0a0860544df95e12d7f41 100644 (file)
@@ -456,14 +456,10 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                        frequency_units[i]
                );
        }
+       wprintf("</select>\n");
 
-       wprintf("</td></tr>\n");
-
-
-       wprintf("<div id=\"weekday_selector\">\n");             /* begin 'weekday_selector' div */
-       wprintf("<tr><td><b>");
-       wprintf("%s", _("on these weekdays:"));
-       wprintf("</b></td><td>");
+       wprintf("<div id=\"weekday_selector\">");       /* begin 'weekday_selector' div */
+       wprintf("%s<br>", _("on these weekdays:"));
 
        char weekday_is_selected[7];
        memset(weekday_is_selected, 0, 7);
@@ -486,9 +482,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                if (weekday_is_selected[i]) wprintf(" checked");
                wprintf(">%s</input>\n", weekday_labels[i]);
        }
+       wprintf("</div>\n");                            /* end 'weekday_selector' div */
 
        wprintf("</td></tr>\n");
-       wprintf("</div>\n");                            /* end 'weekday_selector' div */
 
        wprintf("</table>\n");
        wprintf("</div>\n");                            /* end 'rrule' div */
index 7b61e03c03ac1827b275fe3fba2ca478f54b5d3a..00d6c577ff80b79a150c92921af4d8588d6c6f31 100644 (file)
@@ -994,8 +994,6 @@ function RecurrenceShowHide() {
                $('rrule').style.display = 'none';
        }
 
-       alert('selected index is ' + $('freq_selector').selectedIndex );
-
        if ($('freq_selector').selectedIndex == 4) {
                $('weekday_selector').style.display = 'block';
        }