|
|
|
@ -550,19 +550,27 @@ async function initializeVideoInfo() {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
for (const input of document.getElementsByTagName("input")) {
|
|
|
|
|
if (!isNonVideoInput(input)) {
|
|
|
|
|
input.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (const textArea of document.getElementsByTagName("textarea")) {
|
|
|
|
|
if (!isNonVideoInput(textArea)) {
|
|
|
|
|
textArea.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (const button of document.getElementsByTagName("button")) {
|
|
|
|
|
if (!isNonVideoInput(button)) {
|
|
|
|
|
button.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (const selectBox of document.getElementsByTagName("select")) {
|
|
|
|
|
if (!isNonVideoInput(selectBox)) {
|
|
|
|
|
selectBox.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (modifiedAdvancedOptions) {
|
|
|
|
|
const advancedSubmissionContainer = document.getElementById("advanced-submission-options");
|
|
|
|
@ -1777,3 +1785,7 @@ function canEditVideo() {
|
|
|
|
|
function canEditMetadata() {
|
|
|
|
|
return canEditVideo() || videoInfo.state === "DONE" || videoInfo.state === "MODIFIED";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function isNonVideoInput(element) {
|
|
|
|
|
return element.id.startsWith("data-correction-force-reset");
|
|
|
|
|
}
|
|
|
|
|