diff --git a/static/app.js b/static/app.js index 3bfb8b8..0b10894 100644 --- a/static/app.js +++ b/static/app.js @@ -71,10 +71,6 @@ /* ------------------------------------------------ Video Preview & File Info ------------------------------------------------ */ - function initVideoPreview() { - // Handled inside handleFile - } - function handleFile(file) { if (!file || !file.type.startsWith('video/')) return; @@ -86,6 +82,9 @@ // Video preview via FileReader var reader = new FileReader(); + reader.onerror = function () { + fileDuration.textContent = 'unknown'; + }; reader.onload = function (e) { previewVideo.src = e.target.result; previewVideo.load(); @@ -128,13 +127,13 @@ cards.forEach(function (card) { var checkbox = card.querySelector('.model-card-check'); - // Click card body to toggle (avoid double-toggle when clicking checkbox directly) + //