use toggleElement, fixes #3104

This commit is contained in:
j 2018-03-10 21:38:22 +05:30
parent 80b3c02164
commit a171fbebea

View file

@ -107,7 +107,7 @@ Ox.VideoEditPanel = function(options, self) {
self.$clipPanel.options({selected: self.options.selected}); self.$clipPanel.options({selected: self.options.selected});
}, },
showClips: function() { showClips: function() {
self.$mainPanel.toggle(1); self.$mainPanel.toggleElement(1);
}, },
showLayers: function() { showLayers: function() {
self.$clipPanel.options({ self.$clipPanel.options({
@ -115,7 +115,7 @@ Ox.VideoEditPanel = function(options, self) {
}); });
}, },
showTimeline: function() { showTimeline: function() {
self.$videoPanel.toggle(2); self.$videoPanel.toggleElement(2);
}, },
smallTimelineURL: function() { smallTimelineURL: function() {
self.$video.options({timeline: self.options.smallTimelineURL}); self.$video.options({timeline: self.options.smallTimelineURL});