]> code.citadel.org Git - citadel.git/blobdiff - webcit/src/messages.c
src/crypto.c: possible fix for memory leak related
[citadel.git] / webcit / src / messages.c
index d9823c58fbadd810d1fec22ad3699942c4658720..cfce5f9743c401005144e8bd4dc941cae399fe0f 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)) {
 
@@ -3023,7 +3023,8 @@ void display_enter(void)
                "       theme : \"advanced\", plugins : \"iespell\", "
                "       theme_advanced_buttons1 : \"bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, cut, copy, paste, link, image, help, forecolor, iespell, code\", "
                "       theme_advanced_buttons2 : \"\", "
-               "       theme_advanced_buttons3 : \"\" "
+               "       theme_advanced_buttons3 : \"\", "
+               "       content_css : \"static/webcit-tinymce.css\" "
                "});"
                "</script>\n"
        );