Attachment download links target to _blank
authorArt Cancro <ajc@citadel.org>
Tue, 19 Sep 2023 22:31:15 +0000 (18:31 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 19 Sep 2023 22:31:15 +0000 (18:31 -0400)
webcit-ng/static/js/view_mail.js

index 0b6cf8ce4a87b23c05b43a81d1ec1962c23238ae..2847109b33976e733c0a26a050d537ac13616503 100644 (file)
@@ -217,7 +217,7 @@ function mail_render_one(msgnum, msg, target_div, include_controls) {
                                        }
                                        display_attachments += 1;
                                        outmsg += "<li>"
-                                               + "<a href=\"/ctdl/r/" + escapeHTMLURI(current_room) + "/" + msgnum + "/" + msg.part[r].partnum + "/" + escapeHTMLURI(msg.part[r].filename) + "\">"
+                                               + "<a href=\"/ctdl/r/" + escapeHTMLURI(current_room) + "/" + msgnum + "/" + msg.part[r].partnum + "/" + escapeHTMLURI(msg.part[r].filename) + "\" target=\"_blank\">"
                                                + "<i class=\"fa fa-paperclip\"></i>&nbsp;" + msg.part[r].partnum + ": " + msg.part[r].filename
                                                + " (" + msg.part[r].len + " " + _("bytes") + ")"
                                                + "</a>"