]> 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 b266dbe9997c9d77add6300b48803f390652ee9a..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,14 +59,12 @@ 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: