forked from 0x2620/pandora
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) {
|
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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue