]> code.citadel.org Git - citadel.git/commitdiff
Fixed the 'add new note' button not woring
authorArt Cancro <ajc@citadel.org>
Thu, 6 Apr 2006 21:18:24 +0000 (21:18 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 6 Apr 2006 21:18:24 +0000 (21:18 +0000)
when there were already no notes on the page.

webcit/src/messages.c

index d9823c58fbadd810d1fec22ad3699942c4658720..1394584edd81e1f697e9122b1705178d5a75bd38 100644 (file)
@@ -2193,6 +2193,11 @@ void readloop(char *oper)
                maxmsgs = 32767;
        }
 
+       if (is_notes) {
+               wprintf("<div align=center>%s</div>\n", _("Click on any note to edit it."));
+               wprintf("<div id=\"new_notes_here\"></div>\n");
+       }
+
        nummsgs = load_msg_ptrs(cmd, is_summary);
        if (nummsgs == 0) {
 
@@ -2337,11 +2342,6 @@ void readloop(char *oper)
                );
        }
 
-       if (is_notes) {
-               wprintf("<div align=center>%s</div>\n", _("Click on any note to edit it."));
-               wprintf("<div id=\"new_notes_here\"></div>\n");
-       }
-
        for (a = 0; a < nummsgs; ++a) {
                if ((WC->msgarr[a] >= startmsg) && (num_displayed < maxmsgs)) {