From 683c81f7ab942d1854d28b14dece56ecee93455d Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 4 Mar 2013 15:23:23 +0000 Subject: [PATCH] may fix 1369 --- static/js/pandora/itemClips.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/itemClips.js b/static/js/pandora/itemClips.js index 2620dbed..2b6601f8 100644 --- a/static/js/pandora/itemClips.js +++ b/static/js/pandora/itemClips.js @@ -53,9 +53,12 @@ pandora.ui.itemClips = function(options) { : i == self.options.clips.length - 1 ? '2px -2px 2px 2px' : '2px' }) - .data(Ox.extend(annotations.length ? { - annotation: annotations[0].id.split('/')[1] - } : {}, {'in': clip['in'], out: clip.out})); + .data( + // default 5 second clips are annotations without id + Ox.extend(annotations.length && annotations[0].id ? { + annotation: annotations[0].id.split('/')[1] + } : {}, {'in': clip['in'], out: clip.out}) + ); $item.find('.OxTarget').addClass('OxSpecialTarget'); that.append($item); });