Highlight Previewed Video in Videos Table and FileBin
parent
006fa2d9cc
commit
302c87f186
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue