From 734d0ff30e2ec59e2f7cb7c22402e9deae05e7a4 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 6 Feb 2014 13:39:05 +0000 Subject: [PATCH] use chapter positions --- source/Ox.UI/js/Video/LargeVideoTimeline.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/LargeVideoTimeline.js b/source/Ox.UI/js/Video/LargeVideoTimeline.js index 0d1df8fd..7b9cedb2 100644 --- a/source/Ox.UI/js/Video/LargeVideoTimeline.js +++ b/source/Ox.UI/js/Video/LargeVideoTimeline.js @@ -96,7 +96,9 @@ Ox.LargeVideoTimeline = function(options, self) { } setTimeout(function() { - var chapters = self.options.chapters.slice(1); + var chapters = self.options.chapters.slice(1).map(function(chapter) { + return chapter.position; + }); Ox.unique(chapters.concat(self.options.cuts)).forEach(function(v, i) { self.$cuts[i] = $('') .addClass(Ox.contains(chapters, v) ? 'OxChapter' : 'OxCut')