From: Art Cancro Date: Fri, 3 Oct 2008 15:06:36 +0000 (+0000) Subject: more trailing_javascript X-Git-Tag: v7.86~1880 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;ds=sidebyside;h=5896ebefe4de885af1416aaf4e9c9924dcc78f6b;p=citadel.git more trailing_javascript --- diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 7c47b0d3f..a2d23b4fb 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -68,11 +68,10 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d wc_strftime(timebuf, 32, "%Y-%m-%d", &tm); wprintf(timebuf); wprintf("\">"); - wprintf(""); + + StrBufAppendPrintf(WC->trailing_javascript, "attachDatePicker('"); + StrBufAppendPrintf(WC->trailing_javascript, prefix); + StrBufAppendPrintf(WC->trailing_javascript, "', '%s');\n", get_selected_language()); /* If we're editing a date only, we still generate the time boxes, but we hide them. * This keeps the data model consistent.