From 288086bcfd14799b054b00f4620df60ea0e45a90 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 9 Aug 2013 12:50:52 +0000 Subject: [PATCH] video edit panel: pass split and join events, update self.options.clips on that.updateClip --- source/Ox.UI/js/Video/VideoEditPanel.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/Ox.UI/js/Video/VideoEditPanel.js b/source/Ox.UI/js/Video/VideoEditPanel.js index f8457206..aa47413e 100644 --- a/source/Ox.UI/js/Video/VideoEditPanel.js +++ b/source/Ox.UI/js/Video/VideoEditPanel.js @@ -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); };