calendar_view.c (from webcit-classic) : clean up
[citadel.git] / webcit-ng / static / js / view_calendar.js
index b6d135d368be13e6ba0fcea1ad816f08dd563eab..17a1a4ea5c62c8a5b56d15d76617ea6486532031 100644 (file)
@@ -9,4 +9,19 @@
 // RENDERER FOR THIS VIEW
 function view_render_calendar() {
        document.getElementById("ctdl-main").innerHTML = `STUB RENDERER FOR CALENDAR ROOM`;
+
+       fetch(
+               "/ctdl/r/" + escapeHTMLURI(current_room) + "/calendar::"
+       )
+       .then((response) => {
+               if (response.ok) {
+                       return(response.json());
+               }
+       })
+       .then((j) => {
+               console.log("Something");
+       })
+       .catch((error) => {
+               console.log("Error: " + error);
+       });
 }