From 6086533624803fb9971b33d0156f3fd3db468d10 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 13 Nov 2018 17:08:01 +0000 Subject: [PATCH] use one way to update clips --- static/js/editPanel.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 20b7f4da..3658da7f 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -532,8 +532,7 @@ pandora.ui.editPanel = function(isEmbed) { edit.clips.forEach(function(clip) { clip.index = ids.indexOf(clip.id); }); - edit.clips = Ox.sortBy(edit.clips, 'index'); - updateVideos(); + updateClips(Ox.sortBy(edit.clips, 'index')); } function getLayers(clips) { @@ -692,17 +691,6 @@ pandora.ui.editPanel = function(isEmbed) { }); }); } - - function updateVideos() { - updateDuration(); - that.options({ - duration: edit.duration, - smallTimelineURL: getSmallTimelineURL(), - video: getVideos() - }); - updateSmallTimelineURL(); - } - return that; };