when deselecting annotation, set it to empty string, not undefined
This commit is contained in:
parent
ba4f94df5b
commit
74f3d190f2
2 changed files with 2 additions and 2 deletions
|
@ -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});
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue