video edit panel: don't set position when selecting clip

This commit is contained in:
rlx 2013-07-18 14:07:46 +00:00
parent eaa23ca4c8
commit 594a42fb11

View file

@ -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});