From 902b91f9218881fbf66826ae908515ebc9dac5a9 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 13 Jul 2013 13:58:10 +0000 Subject: [PATCH] allow for small video timeline without image --- source/Ox.UI/js/Video/SmallVideoTimeline.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/SmallVideoTimeline.js b/source/Ox.UI/js/Video/SmallVideoTimeline.js index bd57a182..ea9918f4 100644 --- a/source/Ox.UI/js/Video/SmallVideoTimeline.js +++ b/source/Ox.UI/js/Video/SmallVideoTimeline.js @@ -176,7 +176,7 @@ Ox.SmallVideoTimeline = function(options, self) { } function getTimelineImage() { - return Ox.SmallVideoTimelineImage({ + return (self.options.imageURL ? Ox.SmallVideoTimelineImage({ duration: self.options.duration, imageURL: self.options.imageURL, 'in': self.options['in'], @@ -189,8 +189,7 @@ Ox.SmallVideoTimeline = function(options, self) { state: self.options.state, type: self.options.type, width: self.imageWidth - }) - .css({ + }) : Ox.Element()).css({ position: 'absolute', left: self.imageLeft + 'px', width: self.imageWidth + 'px'