]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/view_mail.js
Separate out the display name and email addresses in the JSON output of a message...
[citadel.git] / webcit-ng / static / js / view_mail.js
index 9ed218b04d44dda2fa6ddf3b30248d494c36af0f..5effc0b461bcc9180d5750c464a14c7789803f84 100644 (file)
@@ -13,6 +13,7 @@ var RefreshMailboxInterval;                                                   // We store our refresh timer here
 // Render a message into the mailbox view
 function mail_render_one(msg, target_div) {
        let div = "FIXME";
+       console.log(msg);
        try {
                outmsg =
                  "<div class=\"ctdl-mmsg-wrapper\">"                           // begin message wrapper
@@ -113,10 +114,10 @@ function mail_render_row(msg) {
                //+ "onmouseenter=\"console.log('mouse in');\" "
                //+ "onmouseleave=\"console.log('mouse out');\""
                + ">"
-               + "<td>" + msg["subject"] + "</td>"
-               + "<td>" + msg["author"] + " &lt;" + msg["addr"] + "&gt;</td>"
-               + "<td style=\"white-space: nowrap\">" + string_timestamp(msg["time"],1) + "</td>"
-               + "<td>" + msg["msgnum"] + "</td>"
+               + "<td class=\"ctdl-mail-subject\">" + msg["subject"] + "</td>"
+               + "<td class=\"ctdl-mail-sender\">" + msg["author"] + "</td>"
+               + "<td class=\"ctdl-mail-date\">" + string_timestamp(msg["time"],1) + "</td>"
+               + "<td class=\"ctdl-mail-msgnum\">" + msg["msgnum"] + "</td>"
                + "</tr>";
        return(row);
 }