edl integration work

This commit is contained in:
Sundog Jones 2024-09-17 10:33:53 -04:00
parent efffc35f30
commit 41c959892a

View File

@ -543,6 +543,19 @@
parent.setAttribute("data-edl-name", edl_name);
});
sort_inserts();
// set up jump/remove handlers
const remove_buttons = document.querySelectorAll("button.media_item_edl_remove_insert");
remove_buttons.forEach((btn) => {
btn.addEventListener("click", (e) => {
e.preventDefault();
e.target.parentNode.remove();
});
});
const jump_buttons = document.querySelectorAll("button.media_item_edl_jump_insert");
jump_buttons.forEach((btn) => {
btn.removeEventListener("click", jumpHandler);
btn.addEventListener("click", jumpHandler);
});
}
save_button.addEventListener("click", (e) => {