Grammar change in the license declaration.
[citadel.git] / webcit-ng / static / js / view_mail.js
index 4b2470021b121ec1345b4e1ae60203d901e49a69..b6e09893ce5c32bbd8067c92923e0cfa46c947d3 100644 (file)
@@ -3,7 +3,7 @@
 // Copyright (c) 2016-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// disclosure is subject to the GNU General Public License v3.
 
 
 var displayed_message = 0;                                                     // ID of message currently being displayed
@@ -346,14 +346,14 @@ function view_render_mail() {
        d.style.display = "block";
        //d.addEventListener("click", mail_delete_selected);
 
-       document.getElementById("ctdl-main").innerHTML
-               = "<div id=\"ctdl-mailbox-grid-container\" class=\"ctdl-mailbox-grid-container\">"
-               + "<div id=\"ctdl-mailbox-pane\" class=\"ctdl-mailbox-pane\"></div>"
-               + "<div id=\"ctdl-mailbox-reading-pane\" class=\"ctdl-mailbox-reading-pane\"></div>"
-               + "</div>"
-       ;
+       document.getElementById("ctdl-main").innerHTML = `
+               <div id="ctdl-mailbox-grid-container" class="ctdl-mailbox-grid-container">
+               <div id="ctdl-mailbox-pane" class="ctdl-mailbox-pane"></div>
+               <div id="ctdl-mailbox-reading-pane" class="ctdl-mailbox-reading-pane"></div>
+               </div>
+       `;
 
-       highest_mailnum = 0;                                    // Keep track of highest message number to track newly arrived messages
+       highest_mailnum = 0;                                    // Keep track of highest msg number to track newly arrived msgs
        render_mailbox_display(newmail_notify.NO);
        try {                                                   // if this was already set up, clear it so there aren't multiple
                clearInterval(RefreshMailboxInterval);
@@ -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);