diff --git a/web/skins/classic/css/classic/views/montagereview.css b/web/skins/classic/css/classic/views/montagereview.css index 84109fbd1..7e6696de1 100644 --- a/web/skins/classic/css/classic/views/montagereview.css +++ b/web/skins/classic/css/classic/views/montagereview.css @@ -36,3 +36,7 @@ input[type=range]::-ms-tooltip { display: none; } + +#downloadVideo { + margin-left: 5px; +} diff --git a/web/skins/classic/css/dark/views/montagereview.css b/web/skins/classic/css/dark/views/montagereview.css index 84109fbd1..7e6696de1 100644 --- a/web/skins/classic/css/dark/views/montagereview.css +++ b/web/skins/classic/css/dark/views/montagereview.css @@ -36,3 +36,7 @@ input[type=range]::-ms-tooltip { display: none; } + +#downloadVideo { + margin-left: 5px; +} diff --git a/web/skins/classic/css/flat/views/montagereview.css b/web/skins/classic/css/flat/views/montagereview.css index 6f8feddf3..e82e5ae95 100644 --- a/web/skins/classic/css/flat/views/montagereview.css +++ b/web/skins/classic/css/flat/views/montagereview.css @@ -42,3 +42,7 @@ input[type=range]::-ms-tooltip { color: white; font-size: 40px; } + +#downloadVideo { + margin-left: 5px; +} diff --git a/web/skins/classic/views/js/montagereview.js b/web/skins/classic/views/js/montagereview.js index 03457f38f..07262c3a0 100644 --- a/web/skins/classic/views/js/montagereview.js +++ b/web/skins/classic/views/js/montagereview.js @@ -335,6 +335,7 @@ function redrawScreen() { $('zoomout').style.display="none"; $('panleft').style.display="none"; $('panright').style.display="none"; + $('downloadVideo').style.display="none"; } else { // switch out of liveview mode @@ -351,6 +352,7 @@ function redrawScreen() { $('panleft').style.display="inline-flex"; $('panright').style.display="inline"; $('panright').style.display="inline-flex"; + $('downloadVideo').style.display="inline"; } if ( fitMode == 1 ) { @@ -553,6 +555,9 @@ function click_panright() { maxTimeSecs = minTimeSecs + rangeTimeSecs - 1; clicknav(minTimeSecs,maxTimeSecs,0); } +function click_download() { + createPopup( '?view=download'+filterQuery, 'zmDownload', 'download' ); +} function click_all_events() { clicknav(0,0,0); } diff --git a/web/skins/classic/views/js/montagereview.js.php b/web/skins/classic/views/js/montagereview.js.php index 69d9c3d22..e8ac13ff5 100644 --- a/web/skins/classic/views/js/montagereview.js.php +++ b/web/skins/classic/views/js/montagereview.js.php @@ -1,4 +1,6 @@ +var filterQuery = ''; + var server_utc_offset = array( 'terms' => array( array('attr' => 'StartDateTime', 'op' => '>=', 'val' => $_REQUEST['minTime']), - array('attr' => 'StartDateTime', 'op' => '<=', 'val' => $_REQUEST['maxTime']), + array('attr' => 'StartDateTime', 'op' => '<=', 'val' => $_REQUEST['maxTime'], 'cnj' => 'and'), ) ), ); @@ -224,6 +224,7 @@ xhtmlHeaders(__FILE__, translate('MontageReview') ); +