edit panel: handle join

This commit is contained in:
rolux 2013-08-10 11:12:09 +00:00
parent ce976a860e
commit c72af378a7

View file

@ -177,7 +177,12 @@ pandora.ui.editPanel = function() {
});
},
join: function(data) {
Ox.print('JOIN', data);
var clips = [serializeClips(data.ids), serializeClips(data.join)];
pandora.doHistory('join', clips, ui.edit, function(result) {
updateClips(edit.clips.filter(function(clip) {
return !Ox.contains(data.ids, clip.id);
}).concat(result.data.clips));
});
},
loop: function(data) {
pandora.UI.set({videoLoop: data.loop});