From 384a09dba45fc4c733ba92dbbc6db4c46a70c12b Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 5 Oct 2023 00:23:12 +0300 Subject: [PATCH] export speed loading error fix --- static/templates/videos/export.html | 1 + static/templates/videos/playback.html | 1 + 2 files changed, 2 insertions(+) diff --git a/static/templates/videos/export.html b/static/templates/videos/export.html index 30c8799..09ada37 100644 --- a/static/templates/videos/export.html +++ b/static/templates/videos/export.html @@ -686,6 +686,7 @@ async function sendPostRequest() { h1Element.textContent = 'Данных для выбранного периода нет.'; const speedBG = document.getElementById("speed-bg"); speedBG.style.display = 'flex'; + document.getElementById("dataLoading").style.display = 'none'; } diff --git a/static/templates/videos/playback.html b/static/templates/videos/playback.html index 23c3e26..ccfb599 100644 --- a/static/templates/videos/playback.html +++ b/static/templates/videos/playback.html @@ -356,6 +356,7 @@ async function sendPostRequest() { if (data.success) { console.log(`Данные доступны. DATAID: ${data.dataId}`) + document.getElementById("speed-bg").style.display = "none"; const requestData = { serial: selectedSerial, datetime: combinedDateTime,