|
|
@ -151,6 +151,7 @@ window.addEventListener("DOMContentLoaded", async (event) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const addRangeIcon = document.getElementById("add-range-definition");
|
|
|
|
const addRangeIcon = document.getElementById("add-range-definition");
|
|
|
|
|
|
|
|
if (videoInfo.state !== "DONE") {
|
|
|
|
addRangeIcon.addEventListener("click", (_event) => {
|
|
|
|
addRangeIcon.addEventListener("click", (_event) => {
|
|
|
|
addRangeDefinition();
|
|
|
|
addRangeDefinition();
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -159,6 +160,7 @@ window.addEventListener("DOMContentLoaded", async (event) => {
|
|
|
|
addRangeDefinition();
|
|
|
|
addRangeDefinition();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const enableChaptersElem = document.getElementById("enable-chapter-markers");
|
|
|
|
const enableChaptersElem = document.getElementById("enable-chapter-markers");
|
|
|
|
enableChaptersElem.addEventListener("change", (_event) => {
|
|
|
|
enableChaptersElem.addEventListener("change", (_event) => {
|
|
|
@ -494,6 +496,16 @@ async function initializeVideoInfo() {
|
|
|
|
saveButton.classList.add("hidden");
|
|
|
|
saveButton.classList.add("hidden");
|
|
|
|
const submitChangesButton = document.getElementById("submit-changes-button");
|
|
|
|
const submitChangesButton = document.getElementById("submit-changes-button");
|
|
|
|
submitChangesButton.classList.remove("hidden");
|
|
|
|
submitChangesButton.classList.remove("hidden");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("add-range-definition").classList.add("hidden");
|
|
|
|
|
|
|
|
const startTimes = document.getElementsByClassName("range-definition-start");
|
|
|
|
|
|
|
|
const endTimes = document.getElementsByClassName("range-definition-end");
|
|
|
|
|
|
|
|
for (const timeField of startTimes) {
|
|
|
|
|
|
|
|
timeField.disabled = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for (const timeField of endTimes) {
|
|
|
|
|
|
|
|
timeField.disabled = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (modifiedAdvancedOptions) {
|
|
|
|
if (modifiedAdvancedOptions) {
|
|
|
|