diff --git a/static/js/editor.js b/static/js/editor.js index e2566fe2..8987facd 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -260,7 +260,7 @@ pandora.ui.editor = function(data) { pandora.UI.set({videoResolution: data.resolution}); }, select: function(data) { - pandora.UI.set('videoPoints.' + ui.item + '.annotation', data.id.split('/')[1]); + pandora.UI.set('videoPoints.' + ui.item + '.annotation', data.id.split('/')[1] || ''); }, subtitles: function(data) { pandora.UI.set({videoSubtitles: data.subtitles}); diff --git a/static/js/player.js b/static/js/player.js index 09abe245..4231a07b 100644 --- a/static/js/player.js +++ b/static/js/player.js @@ -137,7 +137,7 @@ pandora.ui.player = function(data) { pandora.UI.set({videoScale: data.scale}); }, select: function(data) { - pandora.UI.set('videoPoints.' + ui.item + '.annotation', data.id.split('/')[1]); + pandora.UI.set('videoPoints.' + ui.item + '.annotation', data.id.split('/')[1] || ''); }, subtitles: function(data) { pandora.UI.set({videoSubtitles: data.subtitles});