From acbba45300e60946ca6ae7c65643ec25e1a2242b Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 12 Feb 2014 16:03:15 +0000 Subject: [PATCH] edit panel: select pasted clips; don't print error --- static/js/editPanel.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 7dcc91f0f..83fc3f174 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -198,13 +198,9 @@ pandora.ui.editPanel = function(isEmbed) { out: data.key == 'out' ? data.value : clip.out }])); pandora.doHistory('edit', clips, ui.edit, function(result) { - if (result.status.code == 200) { - edit.clips[index] = result.data; - that.updateClip(data.id, result.data); - updateVideos(); - } else { - Ox.print('failed to edit clip', result); - } + edit.clips[index] = result.data; + that.updateClip(data.id, result.data); + updateVideos(); }); }); }, @@ -261,6 +257,11 @@ pandora.ui.editPanel = function(isEmbed) { } return clip; }).concat(result.data.clips)); + that.options({ + selected: result.data.clips.map(function(clip) { + return clip.id; + }) + }); }); }, playing: function(data) {