new shedule block work

This commit is contained in:
Sundog Jones 2024-10-18 11:45:02 -04:00
parent 11d7239694
commit 11110c6a71

View File

@ -880,8 +880,14 @@
e.preventDefault(); e.preventDefault();
const new_block_dialog = document.getElementById("new_block_dialog"); const new_block_dialog = document.getElementById("new_block_dialog");
const new_block_header = document.getElementById("new_block_dialog_header"); const new_block_header = document.getElementById("new_block_dialog_header");
const new_block_start_time_input = document.getElementById("new_block_start_time");
const block_start_time = e.target.parentNode.firstElementChild.innerHTML; const block_start_time = e.target.parentNode.firstElementChild.innerHTML;
new_block_header.innerHTML = "New program block for " + block_start_time; new_block_header.innerHTML = "New program block for " + block_start_time;
new_block_start_time_input.value = block_start_time;
new_block_start_time_input.setAttribute("disabled", "disabled");
const new_block_dialog_id = document.getElementById("new_block_dialog_id");
new_block_dialog_id.value = randomUUID();
const new_block_close_button = document.getElementById("new_block_dialog_close_button"); const new_block_close_button = document.getElementById("new_block_dialog_close_button");
new_block_close_button.addEventListener("click", (event) => { new_block_close_button.addEventListener("click", (event) => {