edits: make clips selection sticky

This commit is contained in:
rolux 2013-08-11 07:43:53 +00:00
parent d474bdbee8
commit 31d7f41b55

View file

@ -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});
},