fix open-video class

node-20
Moe 2023-08-04 21:43:00 -07:00
parent 493ee9678f
commit 46b14dba11
1 changed files with 4 additions and 1 deletions

View File

@ -631,9 +631,11 @@ function getVideoInfoFromEl(_this){
var el = $(_this).parents('[data-mid]')
var monitorId = el.attr('data-mid')
var videoTime = el.attr('data-time')
var video = loadedVideosInMemory[`${monitorId}${videoTime}${undefined}`]
return {
monitorId,
videoTime,
video,
}
}
onWebSocketEvent(function(d){
@ -662,11 +664,12 @@ $(document).ready(function(){
$('body')
.on('click','.open-video',function(e){
e.preventDefault()
var _this = this;
var {
monitorId,
videoTime,
video,
} = getVideoInfoFromEl(this)
} = getVideoInfoFromEl(_this)
createVideoPlayerTab(video)
setVideoStatus(video)
return false;