forked from 0x2620/oxjs
fix issues with automatically opening annotation folders; add annotations option to video player to make find work for all layers
This commit is contained in:
parent
61402492c6
commit
94cfbdb45c
7 changed files with 108 additions and 30 deletions
|
|
@ -45,6 +45,10 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
})
|
||||
.options(options || {});
|
||||
|
||||
if (self.options.selected) {
|
||||
self.options.collapsed = false;
|
||||
}
|
||||
|
||||
self.annotations = getAnnotations();
|
||||
self.points = getPoints();
|
||||
self.position = self.options.position;
|
||||
|
|
@ -526,8 +530,11 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
if (value === '') {
|
||||
self.editing = false;
|
||||
}
|
||||
value && Ox.print('----------------- select item in folder', value, self.options.collapsed)
|
||||
if (value && self.options.collapsed) {
|
||||
toggleLayer();
|
||||
self.$panel.options({animate: false});
|
||||
self.$panel.options({collapsed: false});
|
||||
self.$panel.options({animate: true});
|
||||
}
|
||||
self.$annotations.options({selected: value});
|
||||
} else if (key == 'sort') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue