1
0
Fork 0
forked from 0x2620/oxjs

pass showLayers from panels to folder

This commit is contained in:
j 2015-03-23 17:26:41 +05:30
commit f302db9490
4 changed files with 23 additions and 0 deletions

View file

@ -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});