schedule bug fix

This commit is contained in:
Sundog Jones 2024-09-03 16:39:07 -04:00
parent 2042b9e7c6
commit 4e07fd0940

View File

@ -605,10 +605,12 @@
document.getElementById("schedules_tab").addEventListener("click", (e) => { document.getElementById("schedules_tab").addEventListener("click", (e) => {
setActiveTab(e); setActiveTab(e);
console.log("Switching to schedule tab");
const tab_content = document.querySelector("#tab_content"); const tab_content = document.querySelector("#tab_content");
tab_content.innerHTML = ""; tab_content.innerHTML = "";
const template = document.querySelector("#schedules_template"); const template = document.querySelector("#schedules_template");
const template_clone = template.content.cloneNode(true); const template_clone = template.content.cloneNode(true);
console.dir(template_clone);
tab_content.appendChild(template_clone); tab_content.appendChild(template_clone);
//init_schedules(); //init_schedules();
}); });