From 0ea08dfc0c8d3d39cac7d47a333dbe0373d13220 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 23 Mar 2015 18:00:25 +0530 Subject: [PATCH] fix double toggle collapse --- source/UI/js/Video/AnnotationFolder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/AnnotationFolder.js b/source/UI/js/Video/AnnotationFolder.js index a6fab5d2..05f542f8 100644 --- a/source/UI/js/Video/AnnotationFolder.js +++ b/source/UI/js/Video/AnnotationFolder.js @@ -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') {