Skip to content
Snippets Groups Projects
Commit bed86dd0 authored by Sebastien's avatar Sebastien
Browse files

Allow user to open mosaic view on preview mode

parent 4800e620
No related merge requests found
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
<div id='tabs' class='flex flex-col'> <div id='tabs' class='flex flex-col'>
<div id='tab_selector' class='flex-row flex-center editmode'> <div id='tab_selector' class='flex-row flex-center'>
<form id='tab_selector_form' class='flex-row flex-space-around'> <form id='tab_selector_form' class='flex-row flex-space-around'>
<input id='inp_vid' name='tab' value='video' type='radio' checked /> <input id='inp_vid' name='tab' value='video' type='radio' checked />
<label for='inp_vid'>video</label> <label for='inp_vid'>video</label>
......
...@@ -31,6 +31,11 @@ window.onload = function() { ...@@ -31,6 +31,11 @@ window.onload = function() {
rekall_common.owner = {"canEdit": false, "author": "", "locationGps": "", "locationName": ""}; rekall_common.owner = {"canEdit": false, "author": "", "locationGps": "", "locationName": ""};
rouletteStart(); rouletteStart();
$('#tab_selector_form').change(function (event) {
pubSub.publish(event.target.value)
});
var httpGetData = {"status": 1}; var httpGetData = {"status": 1};
if(getParameterByName("p") != "") { if(getParameterByName("p") != "") {
httpGetData.p = getParameterByName("p"); httpGetData.p = getParameterByName("p");
...@@ -132,6 +137,7 @@ window.onload = function() { ...@@ -132,6 +137,7 @@ window.onload = function() {
}); });
}; };
function setEditionControls() { function setEditionControls() {
//Drag&drop files //Drag&drop files
...@@ -370,10 +376,6 @@ function setEditionControls() { ...@@ -370,10 +376,6 @@ function setEditionControls() {
} }
}); });
$('#tab_selector_form').change(function (event) {
pubSub.publish(event.target.value)
});
$("#popupEdit").click(function (event) { $("#popupEdit").click(function (event) {
event.stopPropagation(); event.stopPropagation();
closeInputs(); closeInputs();
...@@ -706,7 +708,9 @@ function openVideo() { ...@@ -706,7 +708,9 @@ function openVideo() {
function openMosaic() { function openMosaic() {
$('#video_tab').hide(); $('#video_tab').hide();
if(rekall_common.owner.canEdit) {
$('#left_menu_controls').hide(); $('#left_menu_controls').hide();
}
window.app.rekall.Rekall('mosaicWidget').show(); window.app.rekall.Rekall('mosaicWidget').show();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment