fix multiple id selection in VideoAnnotationPanel chain
This commit is contained in:
parent
8e760c3959
commit
01596fa174
2 changed files with 32 additions and 26 deletions
|
|
@ -1357,14 +1357,6 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
if (Ox.isUndefined(data)) {
|
||||
// doubleclick on small timeline
|
||||
data = getAnnotation();
|
||||
} else if (Ox.isArray(data.id)) {
|
||||
var range = data.id.map(id => {
|
||||
return Ox.getObjectById(self.annotations, id)
|
||||
})
|
||||
data['in'] = Ox.min(range.map(annotation => { return annotation["in"]; }))
|
||||
data['out'] = Ox.max(range.map(annotation => { return annotation["out"]; }))
|
||||
setPoint('in', data['in'], true);
|
||||
setPoint('out', data.out, true);
|
||||
} else if (!data.id && Ox.$elements[that.oxid]) {
|
||||
// focus only if in the dom
|
||||
that.gainFocus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue