Added stub renderers for Calendar and Contacts rooms
[citadel.git] / webcit-ng / static / js / views.js
index b266dbe9997c9d77add6300b48803f390652ee9a..6c235fcdec530871dc93a42d059af2d23579a630 100644 (file)
@@ -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: