From e0209417056e7307d62e66379efe57185ff6b67e Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 14 Jul 2013 17:05:04 +0000 Subject: [PATCH] in edits, support different resolutions --- static/js/pandora/editPanel.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/editPanel.js b/static/js/pandora/editPanel.js index 6d94bcb0..70864e77 100644 --- a/static/js/pandora/editPanel.js +++ b/static/js/pandora/editPanel.js @@ -30,9 +30,13 @@ pandora.ui.editPanel = function() { } function getVideos() { - return Ox.flatten(edit.clips.map(function(clip) { - return pandora.getClipVideos(clip); - })); + var videos = {}; + pandora.site.video.resolutions.forEach(function(resolution) { + videos[resolution] = Ox.flatten(edit.clips.map(function(clip) { + return pandora.getClipVideos(clip, resolution); + })); + }); + return videos; } function render() {