new shedule block work

This commit is contained in:
Sundog Jones 2024-10-18 11:49:13 -04:00
parent 4e327bfbb3
commit fc4cba8993

View File

@ -325,7 +325,6 @@
<h2 id="new_block_dialog_header">Adding a New Schedule Block</h2>
<p><label for="new_block_dialog_id">ID: </label><input name="id" id="new_block_dialog_id" type="text" disabled /></p>
<p><label for="new_block_dialog_name">Name: </label><input name="name" id="new_block_dialog_name" type="text" /></p>
<p><label for="new_block_start_time">Start time: </label><input name="start_time" id="new_block_start_time" type="text" /></p>
<p>Tag(s) for block:</p>
<div id="new_block_program_tags"></div>
<p><label for="new_block_program_selector">Select program by </label><select id="new_block_program_selector">
@ -880,11 +879,8 @@
e.preventDefault();
const new_block_dialog = document.getElementById("new_block_dialog");
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;
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 = self.crypto.randomUUID();