only set annotation if it exists
This commit is contained in:
parent
3cf3ba5c6f
commit
d0d1feca18
1 changed files with 3 additions and 1 deletions
|
|
@ -222,7 +222,9 @@ pandora.ui.editor = function(data) {
|
|||
});
|
||||
}
|
||||
that.updateAnnotation(data.id, result.data);
|
||||
pandora.UI.set('videoPoints.' + ui.item + '.annotation', result.data.id.split('/')[1] || '');
|
||||
if (result.data.id) {
|
||||
pandora.UI.set('videoPoints.' + ui.item + '.annotation', result.data.id.split('/')[1] || '');
|
||||
}
|
||||
Ox.Request.clearCache();
|
||||
};
|
||||
var edit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue