use one way to update clips

This commit is contained in:
j 2018-11-13 17:08:01 +00:00
parent 1769bf84ff
commit 6086533624

View file

@ -532,8 +532,7 @@ pandora.ui.editPanel = function(isEmbed) {
edit.clips.forEach(function(clip) { edit.clips.forEach(function(clip) {
clip.index = ids.indexOf(clip.id); clip.index = ids.indexOf(clip.id);
}); });
edit.clips = Ox.sortBy(edit.clips, 'index'); updateClips(Ox.sortBy(edit.clips, 'index'));
updateVideos();
} }
function getLayers(clips) { 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; return that;
}; };