may fix 1369

This commit is contained in:
rolux 2013-03-04 15:23:23 +00:00
parent b06d0fd7fc
commit 683c81f7ab

View file

@ -53,9 +53,12 @@ pandora.ui.itemClips = function(options) {
: i == self.options.clips.length - 1 ? '2px -2px 2px 2px' : i == self.options.clips.length - 1 ? '2px -2px 2px 2px'
: '2px' : '2px'
}) })
.data(Ox.extend(annotations.length ? { .data(
// default 5 second clips are annotations without id
Ox.extend(annotations.length && annotations[0].id ? {
annotation: annotations[0].id.split('/')[1] annotation: annotations[0].id.split('/')[1]
} : {}, {'in': clip['in'], out: clip.out})); } : {}, {'in': clip['in'], out: clip.out})
);
$item.find('.OxTarget').addClass('OxSpecialTarget'); $item.find('.OxTarget').addClass('OxSpecialTarget');
that.append($item); that.append($item);
}); });