From 26f0c456acd7197bd98196faa8d08fa7d652d167 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 7 Feb 2014 11:36:02 +0000 Subject: [PATCH] Edits: Make the player's link button functional, fixes #2101 --- static/js/editPanel.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index da086d15..d00dbc57 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -235,6 +235,23 @@ pandora.ui.editPanel = function() { open: function(data) { 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() { var clips = pandora.clipboard.paste(); pandora.doHistory('paste', clips, ui.edit, function(result) {