Backport pull request #7409 from jellyfin-web/release-10.11.z

Fix subtitles need to be uploaded twice

Original-merge: bc39ee10ba

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: thornbill <thornbill@users.noreply.github.com>
This commit is contained in:
shempignon
2025-12-12 13:32:37 -05:00
committed by thornbill
parent 193d610d0d
commit e41ea5a293

View File

@@ -80,11 +80,12 @@ function setFiles(page, files) {
}
async function onSubmit(e) {
e.preventDefault();
const file = currentFile;
if (!isValidSubtitleFile(file)) {
toast(globalize.translate('MessageSubtitleFileTypeAllowed'));
e.preventDefault();
return;
}
@@ -109,8 +110,6 @@ async function onSubmit(e) {
hasChanges = true;
dialogHelper.close(dlg);
});
e.preventDefault();
}
function initEditor(page) {