fix double toggle collapse

This commit is contained in:
j 2015-03-23 18:00:25 +05:30
parent 470e6ac127
commit 0ea08dfc0c

View file

@ -79,7 +79,8 @@ Ox.AnnotationFolder = function(options, self) {
self.position = self.options.position;
}
} else if (key == 'collapsed') {
self.$panel.options({collapsed: self.options.collapsed});
self.options.collapsed = !self.options.collapsed;
self.$panel.options({collapsed: !self.options.collapsed});
self.options.type == 'event' && self.$calendar.resizeCalendar()
self.options.type == 'map' && self.$map.resizeMap()
} else if (key == 'languages') {