Edits: Make the player's link button functional, fixes #2101

This commit is contained in:
j 2014-02-07 11:36:02 +00:00
parent fbaa24b9aa
commit 26f0c456ac

View file

@ -235,6 +235,23 @@ pandora.ui.editPanel = function() {
open: function(data) { open: function(data) {
pandora.UI.set(editsKey('clip'), data.ids[0]); pandora.UI.set(editsKey('clip'), data.ids[0]);
}, },
openlink: function(data) {
pandora.UI.set('videoPoints.' + data.item, data.annotation ? {
annotation: data.annotation.split('/')[1],
'in': data['in'],
out: data.out,
position: data.position
} : {
'in': data['in'],
out: data.out,
position: data.position
});
pandora.UI.set({
section: 'items',
item: data.item || data.annotation.split('/')[0],
itemView: ui.videoView,
});
},
paste: function() { paste: function() {
var clips = pandora.clipboard.paste(); var clips = pandora.clipboard.paste();
pandora.doHistory('paste', clips, ui.edit, function(result) { pandora.doHistory('paste', clips, ui.edit, function(result) {