diff --git a/web/libs/js/dash2.timelapse.jpeg.js b/web/libs/js/dash2.timelapse.jpeg.js index 4b8c807d..55b69ff6 100644 --- a/web/libs/js/dash2.timelapse.jpeg.js +++ b/web/libs/js/dash2.timelapse.jpeg.js @@ -137,19 +137,19 @@ $(document).ready(function(e){ var selectedMonitor = $.timelapseJpeg.monitors.val() var generatorUrl = $.timelapseJpeg.pointer + $user.auth_token + '/timelapse/' + $user.ke + '/' + selectedMonitor $.getJSON(generatorUrl + '?' + queryString.join('&'),function(response){ + _this.text(lang['Download']) if(response.fileExists){ - _this.text(lang['Download']) var downloadName = startDate + '_' + endDate + '_' + selectedMonitor + '.mp4' var a = document.createElement('a') a.href = generatorUrl + '?' + queryString.concat(['download="1"']).join('&') a.download = downloadName a.click() }else{ - _this.html('  ') - clearTimeout($.timelapseJpeg.downloadRecheckTimers[timerId]) - $.timelapseJpeg.downloadRecheckTimers[timerId] = setTimeout(function(){ - runDownloader() - },5000) + // _this.html('  ') + // clearTimeout($.timelapseJpeg.downloadRecheckTimers[timerId]) + // $.timelapseJpeg.downloadRecheckTimers[timerId] = setTimeout(function(){ + // runDownloader() + // },5000) } }) }