diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index d0258cd3..84415132 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -463,16 +463,13 @@ Ox.VideoEditPanel = function(options, self) { } function selectClip() { - var id, - position = Ox.last(self.options.clips).position; + var id = Ox.last(self.options.clips).id; Ox.forEach(self.options.clips, function(clip, i) { if (clip.position > self.options.position) { id = self.options.clips[i - 1].id; - position = self.options.clips[i - 1].position; return false; // break } }); - setPosition(position); self.options.selected = [id]; Ox.print('????', self.$clipPanel.options('selected')) self.$clipPanel.options({selected: self.options.selected});