allow for small video timeline without image

This commit is contained in:
rlx 2013-07-13 13:58:10 +00:00
parent d64f499034
commit 902b91f921

View file

@ -176,7 +176,7 @@ Ox.SmallVideoTimeline = function(options, self) {
} }
function getTimelineImage() { function getTimelineImage() {
return Ox.SmallVideoTimelineImage({ return (self.options.imageURL ? Ox.SmallVideoTimelineImage({
duration: self.options.duration, duration: self.options.duration,
imageURL: self.options.imageURL, imageURL: self.options.imageURL,
'in': self.options['in'], 'in': self.options['in'],
@ -189,8 +189,7 @@ Ox.SmallVideoTimeline = function(options, self) {
state: self.options.state, state: self.options.state,
type: self.options.type, type: self.options.type,
width: self.imageWidth width: self.imageWidth
}) }) : Ox.Element()).css({
.css({
position: 'absolute', position: 'absolute',
left: self.imageLeft + 'px', left: self.imageLeft + 'px',
width: self.imageWidth + 'px' width: self.imageWidth + 'px'