summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/viewer/checklist/checklist.content.js')
-rw-r--r--animism-align/frontend/app/views/viewer/checklist/checklist.content.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
index fd395a1..1406996 100644
--- a/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
+++ b/animism-align/frontend/app/views/viewer/checklist/checklist.content.js
@@ -8,9 +8,10 @@ import { thumbnailURL } from 'app/utils/annotation.utils'
import { PlayIcon } from '../nav/viewer.icons'
class ChecklistContent extends Component {
- handleMediaSelection(mediaItem) {
- actions.viewer.seekToMediaItem(mediaItem)
+ handleMediaSelection(section, mediaItem) {
+ actions.viewer.seekToMediaItem(section, mediaItem)
}
+
render() {
const { sections, currentSection } = this.props
return (
@@ -26,7 +27,7 @@ class ChecklistContent extends Component {
<div
className="checklist-row"
key={section.index + "_" + i}
- onClick={() => this.handleMediaSelection(mediaItem)}
+ onClick={() => this.handleMediaSelection(section, mediaItem)}
>
<div className="media-id">
{pad(section.mediaIndex + i + 1, 2)}