fix highlight color on timeline for newly created annotations
This commit is contained in:
parent
d3d7427bfe
commit
5b9afde7b3
1 changed files with 6 additions and 0 deletions
|
@ -1719,6 +1719,12 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
// id might have changed if new annotation was created
|
||||
if (annotation.id) {
|
||||
self.options.selected = annotation.id;
|
||||
var layer = Ox.getObjectById(self.options.layers, annotation.layer)
|
||||
var item = Ox.getObjectById(layer.items, annotation.id)
|
||||
if (!item) {
|
||||
layer.items.push(annotation)
|
||||
self.annotations = getAnnotations();
|
||||
}
|
||||
}
|
||||
if (getSelectedLayer() == self.options.subtitlesLayer) {
|
||||
updateSubtitles();
|
||||
|
|
Loading…
Reference in a new issue