video edit panel: pass split and join events, update self.options.clips on that.updateClip

This commit is contained in:
rlx 2013-08-09 12:50:52 +00:00
parent e3be29e6ef
commit 288086bcfd

View file

@ -312,6 +312,9 @@ Ox.VideoEditPanel = function(options, self) {
edit: function(data) {
that.triggerEvent('edit', data);
},
join: function(data) {
that.triggerEvent('join', data);
},
move: function(data) {
that.triggerEvent('move', data);
},
@ -331,6 +334,9 @@ Ox.VideoEditPanel = function(options, self) {
self.options.clipSort = data;
that.triggerEvent('sort', data);
},
split: function(data) {
that.triggerEvent('split', data);
},
toggle: toggleClips,
view: function(data) {
that.triggerEvent('view', data);
@ -547,6 +553,7 @@ Ox.VideoEditPanel = function(options, self) {
}
that.updateClip = function(id, data) {
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
self.$clipPanel.updateItem(id, data);
};