forked from 0x2620/oxjs
pass showLayers from panels to folder
This commit is contained in:
parent
69cd6ceed8
commit
f302db9490
4 changed files with 23 additions and 0 deletions
|
|
@ -83,6 +83,12 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
$folder.options({selected: ''});
|
||||
});
|
||||
}
|
||||
} else if (key == 'showLayers') {
|
||||
self.options.layers.forEach(function(layer, index) {
|
||||
self.$folder[index].options({
|
||||
collapsed: !self.options.showLayers[layer.id]
|
||||
});
|
||||
});
|
||||
} else if (key == 'width') {
|
||||
self.$folder.forEach(function($folder) {
|
||||
$folder.options({width: self.options.width - Ox.UI.SCROLLBAR_SIZE});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue