// 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
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);
}
// 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);