]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.c
* Tasks view now uses the same buffer/dump logic as the calendar views, so
[citadel.git] / webcit / messages.c
index c9e0c5588aa1d0ec15c83ca6fb58a97f06bbcaea..e30cc1820cd3474f98e7b849cd09dc98e9987f5b 100644 (file)
@@ -1107,7 +1107,6 @@ void readloop(char *oper)
                is_tasks = 1;
                strcpy(cmd, "MSGS ALL");
                maxmsgs = 32767;
-               wprintf("<UL>");
        }
 
        nummsgs = load_msg_ptrs(cmd);
@@ -1215,10 +1214,6 @@ void readloop(char *oper)
                wprintf("</TABLE>\n");
        }
 
-       if (is_tasks) {
-               wprintf("</UL>\n");
-       }
-
        /* Bump these because although we're thinking in zero base, the user
         * is a drooling idiot and is thinking in one base.
         */
@@ -1331,9 +1326,7 @@ void readloop(char *oper)
 
 DONE:
        if (is_tasks) {
-               wprintf("<A HREF=\"/display_edit_task?msgnum=0\">"
-                       "Add new task</A>\n"
-               );
+               do_tasks_view();        /* Render the task list */
        }
 
        if (is_calendar) {