use one way to update clips
This commit is contained in:
parent
1769bf84ff
commit
6086533624
1 changed files with 1 additions and 13 deletions
|
@ -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;
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue