view_mail.js: make the Forward button appear.
authorArt Cancro <ajc@citadel.org>
Wed, 29 Nov 2023 04:52:36 +0000 (18:52 -1000)
committerArt Cancro <ajc@citadel.org>
Wed, 29 Nov 2023 04:52:36 +0000 (18:52 -1000)
Needs a lot of work.  Currently it is just a reply with no addressees filled in.
It needs to not quote the message, and carry over the attachments.

webcit-ng/static/js/view_mail.js

index 0e37bd0d9cd417f3636ea67a9cefefb2dff8da1c..3118a6b7aac8ef5256a6e0f2afdd2eb048c93b2b 100644 (file)
@@ -159,6 +159,12 @@ function mail_render_one(msgnum, msg, target_div, include_controls) {
                        + "<a href=\"javascript:mail_compose(true,'"+msg.wefw+"','"+msgnum+"', replyall_to(msg), msg.cccc, 'Re: '+msg.subj);\">"
                        + "<i class=\"fa fa-reply-all\"></i> " 
                        + _("ReplyAll")
+                       + "</a></span>"
+               
+                       + "<span class=\"ctdl-msg-button\">"                    // Forward (server handles this)
+                       + "<a href=\"javascript:mail_compose(true,'"+msg.wefw+"','"+msgnum+"', '', '', 'Fwd: '+msg.subj);\">"
+                       + "<i class=\"fa fa-mail-forward\"></i> " 
+                       + _("Forward")
                        + "</a></span>";
                
                        if (can_delete_messages) {