fix opening calendar over p2p

video-slicer-reencoder
Moe 2022-09-09 14:26:41 -07:00
parent b6adfde25a
commit 21302e9ea3
1 changed files with 3 additions and 2 deletions

View File

@ -72,13 +72,14 @@ $(document).ready(function(e){
right: 'month,agendaWeek,agendaDay,listWeek'
},
defaultDate: moment(startDate).format('YYYY-MM-DD'),
locale: $user.details.lang.substring(0, 2),
locale: ($user.details.lang || '').substring(0, 2) || undefined,
navLinks: true,
eventLimit: true,
events: calendarData,
eventClick: function(v){
var video = loadedVideosInMemory[`${v.mid}${v.time}`]
createVideoPlayerTab(video)
var href = getFullOrigin(true) + video.href
createVideoPlayerTab(Object.assign({},video,{href: href}))
$(this).css('border-color', 'red');
}
});