diff --git a/web/assets/js/bs5.videos.js b/web/assets/js/bs5.videos.js index 18595ad0..559578b5 100644 --- a/web/assets/js/bs5.videos.js +++ b/web/assets/js/bs5.videos.js @@ -62,9 +62,11 @@ function createVideoRow(row,classOverride){ ${lang.Events} ${row.events.length} ` - $.each(row.events,function(n,theEvent){ + $.each(([]).concat(row.events).splice(0,11),function(n,theEvent){ var imagePath = `${formattedTimeForFilename(theEvent.time,false,'YYYY-MM-DD')}/${formattedTimeForFilename(theEvent.time,false,'YYYY-MM-DDTHH-mm-ss')}.jpg` possibleEventFrames += `
` + }) + $.each(row.events,function(n,theEvent){ $.each(theEvent.details.matrices,function(n,matrix){ if(!objectsFound[matrix.tag])objectsFound[matrix.tag] = 1 ++objectsFound[matrix.tag]