From 02a84d2df98fb240746505bd10c99a734d4c464b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 7 Jan 2009 21:46:27 +0000 Subject: [PATCH] * Tasks in summary view are now clickable too. I also found the bug report; it was an internal report at my office rather than something in Bugzilla. Closed it. --- webcit/calendar.c | 14 ++++++++++---- webcit/calendar_view.c | 44 ++++++++++++++++++++++++++++-------------- 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index a80e62c16..9012e8966 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -640,8 +640,9 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch wprintf("
\n"); wprintf("
\n "); wprintf("\n", WC->nonce); - wprintf("\n", - msgnum); + wprintf("\n", msgnum); + wprintf("\n", + ibstr("return_to_summary")); wprintf("
"); wprintf("
"); wprintf("\n"); @@ -937,8 +938,13 @@ void save_individual_task(icalcomponent *supplied_vtodo, long msgnum, char* from icalcomponent_free(vtodo); } - /** Go back to the task list */ - readloop(readfwd); + /* Go back to wherever we came from */ + if (ibstr("return_to_summary") == 1) { + summary(); + } + else { + readloop(readfwd); + } } diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 7d13d99e8..f9863836b 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -1295,19 +1295,34 @@ void calendar_summary_view(void) { p = icalcomponent_get_first_property(Cal->cal, ICAL_SUMMARY_PROPERTY); if (p != NULL) { - wprintf("", - Cal->cal_msgnum, - today_tm.tm_year + 1900, - today_tm.tm_mon + 1, - today_tm.tm_mday - ); + + + if (WCC->wc_view == VIEW_TASKS) { + wprintf(""); + } + else { + wprintf(""); + } escputs((char *) icalproperty_get_comment(p)); wprintf(" (%s)
\n", timestring); } @@ -1536,8 +1551,7 @@ void do_tasks_view(void) { wprintf("disabled=\"disabled\">\n
"); p = icalcomponent_get_first_property(Cal->cal, ICAL_SUMMARY_PROPERTY); - wprintf("cal_msgnum ); + wprintf("cal_msgnum); urlescputs(WC->wc_roomname); wprintf("\">"); /* wprintf("