From 31d7f41b5597de87b8fa35ad59d15c4d9d46f0e9 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 11 Aug 2013 07:43:53 +0000 Subject: [PATCH] edits: make clips selection sticky --- static/js/editPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index d6c63dd6..69054dfd 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -102,7 +102,7 @@ pandora.ui.editPanel = function() { position: ui.edits[ui.edit].position, resolution: ui.videoResolution, scaleToFill: ui.videoScale == 'fill', - // selected: ... + selected: ui.edits[ui.edit].selection, showClips: ui.showClips, showTimeline: ui.showTimeline, smallTimelineURL: getSmallTimelineURL(), @@ -245,6 +245,9 @@ pandora.ui.editPanel = function() { scale: function(data) { pandora.UI.set({videoScale: data.scale}); }, + select: function(data) { + pandora.UI.set(editsKey('selection'), data.ids); + }, size: function(data) { pandora.UI.set({clipSize: data.size}); },