video edit panel: pass split and join events, update self.options.clips on that.updateClip
This commit is contained in:
parent
e3be29e6ef
commit
288086bcfd
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue