when deselecting annotation, set it to empty string, not undefined

This commit is contained in:
rolux 2013-08-06 10:37:53 +00:00
parent ba4f94df5b
commit 74f3d190f2
2 changed files with 2 additions and 2 deletions

View file

@ -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});

View file

@ -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});