edl integration work

This commit is contained in:
Sundog Jones 2024-09-17 09:52:55 -04:00
parent e000f44a15
commit a9f362b6e7
1 changed files with 5 additions and 4 deletions

View File

@ -511,6 +511,11 @@
template_clone.firstElementChild.setAttribute("data-duration", media_item_element.getAttribute("data-duration")); template_clone.firstElementChild.setAttribute("data-duration", media_item_element.getAttribute("data-duration"));
template_clone.firstElementChild.setAttribute("data-media-id", media_item_element.getAttribute("data-id")); template_clone.firstElementChild.setAttribute("data-media-id", media_item_element.getAttribute("data-id"));
target.innerHTML = "";
target.appendChild(template_clone);
fetch_item_tags(item_id);
const save_button = document.getElementById("media_item_editor_save_button");
// populate EDL if it exists // populate EDL if it exists
const thisRowEDL = media_item_element.getAttribute("data-edl-definition"); const thisRowEDL = media_item_element.getAttribute("data-edl-definition");
console.log("EDL for media:"); console.log("EDL for media:");
@ -532,10 +537,6 @@
sort_inserts(); sort_inserts();
} }
target.innerHTML = "";
target.appendChild(template_clone);
fetch_item_tags(item_id);
const save_button = document.getElementById("media_item_editor_save_button");
save_button.addEventListener("click", (e) => { save_button.addEventListener("click", (e) => {
e.preventDefault(); e.preventDefault();
const api_url = "update.php?id=" + item_id; const api_url = "update.php?id=" + item_id;