diff --git a/source/Ox.UI/js/Video/VideoTimelinePanel.js b/source/Ox.UI/js/Video/VideoTimelinePanel.js index ec6a62e0..d7f12aa7 100644 --- a/source/Ox.UI/js/Video/VideoTimelinePanel.js +++ b/source/Ox.UI/js/Video/VideoTimelinePanel.js @@ -83,7 +83,7 @@ Ox.VideoTimelinePanel = function(options, self) { setPosition(self.options.position); }, showAnnotations: function() { - that.$element.toggle(1); + self.$panel.toggleElement(1); }, timeline: function() { self.$player.options({timeline: self.options.timeline}); @@ -222,7 +222,7 @@ Ox.VideoTimelinePanel = function(options, self) { }); that.setElement( - Ox.SplitPanel({ + self.$panel = Ox.SplitPanel({ elements: [ { element: self.$player @@ -315,7 +315,7 @@ Ox.VideoTimelinePanel = function(options, self) { () -> toggle annotations @*/ that.toggleAnnotations = function() { - that.$element.toggle(1); + self.$panel.toggleElement(1); }; return that;