From e3fe300cb7c11b59ad0a61d39a6c77c6bce66cf5 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 16 Mar 2018 13:10:30 +0530 Subject: [PATCH] move to annotation in point on selecting annotation in edit, fixes #3108 --- static/js/editPanel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 5db43fa0..20b7f4da 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -330,6 +330,9 @@ pandora.ui.editPanel = function(isEmbed) { select: function(data) { pandora.UI.set({editSelection: data.ids}); }, + selectannotation: function(data) { + that.options({position: data['in']}) + }, sort: function(data) { pandora.UI.set({editSort: data}); sortClips(updateClips); @@ -542,6 +545,7 @@ pandora.ui.editPanel = function(isEmbed) { items: Ox.flatten(clips.map(function(clip) { return clip.layers[layer.id].map(function(annotation) { var a = Ox.clone(annotation); + a['id'] = clip['id'] + '/' + a['id']; a['in'] = Math.max( clip['position'], a['in'] - clip['in'] + clip['position']