Highlight Previewed Video in Videos Table and FileBin

rkmpp-v4l2m2m-decode
Moe 2022-12-05 15:23:52 -08:00
parent 006fa2d9cc
commit 302c87f186
3 changed files with 10 additions and 2 deletions

View File

@ -958,6 +958,10 @@ function loadDateRangePicker(dateSelector,options){
} }
},options || {},{ onChange: undefined }), options.onChange) },options || {},{ onChange: undefined }), options.onChange)
} }
function setPreviewedVideoHighlight(buttonEl,tableEl){
tableEl.find('tr').removeClass('bg-gradient-blue')
buttonEl.parents('tr').addClass('bg-gradient-blue')
}
// on page load // on page load
var readyFunctions = [] var readyFunctions = []
function onDashboardReady(theAction){ function onDashboardReady(theAction){

View File

@ -184,7 +184,9 @@ $(document).ready(function(e){
}) })
.on('click','.preview-video',function(e){ .on('click','.preview-video',function(e){
e.preventDefault() e.preventDefault()
var href = $(this).attr('href') var el = $(this)
var href = el.attr('href')
setPreviewedVideoHighlight(el,fileBinDrawArea)
drawPreviewVideo(href) drawPreviewVideo(href)
return false; return false;
}) })

View File

@ -257,7 +257,9 @@ $(document).ready(function(e){
theEnclosure theEnclosure
.on('click','.preview-video',function(e){ .on('click','.preview-video',function(e){
e.preventDefault() e.preventDefault()
var href = $(this).attr('href') var el = $(this)
var href = el.attr('href')
setPreviewedVideoHighlight(el,videosTableDrawArea)
drawPreviewVideo(href) drawPreviewVideo(href)
return false; return false;
}) })