]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/views.js
Grammar change in the license declaration.
[citadel.git] / webcit-ng / static / js / views.js
index f3707d48c935e373862cf7b207f435522018c50a..e6b769d194e3aafd4951dd8cd34b7aed8eae15c4 100644 (file)
@@ -1,7 +1,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.
 
 
 // Clear the sidebar buttons of any style indicating that one is selected
@@ -59,49 +59,47 @@ function render_room_view() {
 
                // The "contacts" module displays rooms with the VIEW_ADDRESSBOOK view as a contacts manager.
                case views.VIEW_ADDRESSBOOK:
-                       document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is an address book but there is no renderer.</div>";
+                       view_render_contacts();
                        break;
 
                case views.VIEW_CALENDAR:
                case views.VIEW_CALBRIEF:
-                       document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a calendar but there is no renderer.</div>";
+                       view_render_calendar();
                        break;
 
                case views.VIEW_TASKS:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a task list but there is no renderer.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is a task list but there is no renderer.</div>`;
                        break;
 
                case views.VIEW_NOTES:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a notes list but there is no renderer.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is a notes list but there is no renderer.</div>`;
                        break;
 
                case views.VIEW_WIKI:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a wiki but there is no renderer.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is a wiki but there is no renderer.</div>`;
                        break;
 
                case views.VIEW_JOURNAL:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a journal but there is no renderer.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is a journal but there is no renderer.</div>`;
                        break;
 
                case views.VIEW_BLOG:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">'" + current_room + "' is a blog but there is no renderer.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is a blog but there is no renderer.</div>`;
                        break;
 
                case views.VIEW_QUEUE:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">We ought to be displaying the email queue here.</div>";
+                               `<div class="ctdl-middle">'${current_room}' is the mail queue but there is no renderer.</div>`;
                        break;
 
                default:
                        document.getElementById("ctdl-main").innerHTML =
-                               "<div class=\"ctdl-middle\">The view for " + current_room + " is " + current_view + " but there is no renderer.</div>";
+                               `<div class="ctdl-middle">The view for '${current_room}' is ${current_view} but there is no renderer.</div>`;
                        break;
        }
 
@@ -115,7 +113,7 @@ function entmsg_dispatcher() {
                        forum_entmsg();
                        break;
                case views.VIEW_MAILBOX:
-                       mail_compose(false, "", 0, "", "", "");
+                       mail_compose("", 0, [], [], "");
                        break;
                default:
                        break;