X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsummary.c;h=172a15486703d700279a37f4ee2abac124a1dee8;hb=4b4dc864ede7c5d8d956febe4a0afb422b78e7c4;hp=6372245a003b84145e906a89c607a4f52f5b9402;hpb=fb6d573c664ecb062b96be90c59906ed9bbe82ae;p=citadel.git diff --git a/webcit/summary.c b/webcit/summary.c index 6372245a0..172a15486 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -21,6 +21,8 @@ #include "webcit.h" #include "calendar.h" +extern int calendar_summary_view(void); + /* * Display today's date in a friendly format */ @@ -115,7 +117,7 @@ void tasks_section(void) { num_msgs = 0; } else { - num_msgs = load_msg_ptrs("MSGS ALL", &Stat, NULL); + num_msgs = load_msg_ptrs("MSGS ALL", NULL, &Stat, NULL); } if (num_msgs > 0) { @@ -140,6 +142,7 @@ void tasks_section(void) { */ void calendar_section(void) { char cmd[SIZ]; + char filter[SIZ]; int num_msgs = 0; HashPos *at; const char *HashKey; @@ -163,13 +166,16 @@ void calendar_section(void) { num_msgs = 0; } else { - num_msgs = load_msg_ptrs("MSGS ALL", &Stat, NULL); + num_msgs = load_msg_ptrs("MSGS ALL", NULL, &Stat, NULL); } calendar_GetParamsGetServerCall(&Stat, &v, readnew, cmd, - sizeof(cmd)); + sizeof(cmd), + filter, + sizeof(filter)); + if (num_msgs > 0) { at = GetNewHashPos(WCC->summ, 0); @@ -209,7 +215,6 @@ InitModule_SUMMARY WebcitAddUrlHandler(HKEY("new_messages_html"), "", 0, new_messages_section, AJAX); WebcitAddUrlHandler(HKEY("tasks_inner_html"), "", 0, tasks_section, AJAX); WebcitAddUrlHandler(HKEY("calendar_inner_html"), "", 0, calendar_section, AJAX); - WebcitAddUrlHandler(HKEY("mini_calendar"), "", 0, ajax_mini_calendar, AJAX); }