More template literals.
authorArt Cancro <ajc@citadel.org>
Wed, 20 Dec 2023 04:15:10 +0000 (23:15 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 20 Dec 2023 04:15:10 +0000 (23:15 -0500)
webcit-ng/static/js/view_mail.js

index e78560a847cdf5d4728cd33cda7e76cf0c8b9f0e..37fcdbbe79ab05d9619ed799f0656f2af0c4be60 100644 (file)
@@ -413,12 +413,14 @@ function render_mailbox_display(notify) {
                        }
 
                        // begin rendering the mailbox table
-                       box =   "<table id=\"ctdl-onscreen-mailbox\" class=\"ctdl-mailbox-table\" width=100%><tr>"
-                               + "<th>" + _("Subject") + "</th>"
-                               + "<th>" + _("Sender") + "</th>"
-                               + "<th>" + _("Date") + "</th>"
-                               + "<th>#</th>"
-                               + "</tr>";
+                       box = `
+                               <table id="ctdl-onscreen-mailbox" class="ctdl-mailbox-table" width=100%><tr>
+                               <th>${_("Subject")}</th>
+                               <th>${ _("Sender")}</th>
+                               <th>${_("Date")}</th>
+                               <th>#</th>
+                               </tr>
+                       `;
 
                        for (let i=0; i<msgs.length; ++i) {
                                let m = parseInt(msgs[i].msgnum);