forked from 0x2620/pandora
move to annotation in point on selecting annotation in edit, fixes #3108
This commit is contained in:
parent
a7d70c15ea
commit
e3fe300cb7
1 changed files with 4 additions and 0 deletions
|
@ -330,6 +330,9 @@ pandora.ui.editPanel = function(isEmbed) {
|
||||||
select: function(data) {
|
select: function(data) {
|
||||||
pandora.UI.set({editSelection: data.ids});
|
pandora.UI.set({editSelection: data.ids});
|
||||||
},
|
},
|
||||||
|
selectannotation: function(data) {
|
||||||
|
that.options({position: data['in']})
|
||||||
|
},
|
||||||
sort: function(data) {
|
sort: function(data) {
|
||||||
pandora.UI.set({editSort: data});
|
pandora.UI.set({editSort: data});
|
||||||
sortClips(updateClips);
|
sortClips(updateClips);
|
||||||
|
@ -542,6 +545,7 @@ pandora.ui.editPanel = function(isEmbed) {
|
||||||
items: Ox.flatten(clips.map(function(clip) {
|
items: Ox.flatten(clips.map(function(clip) {
|
||||||
return clip.layers[layer.id].map(function(annotation) {
|
return clip.layers[layer.id].map(function(annotation) {
|
||||||
var a = Ox.clone(annotation);
|
var a = Ox.clone(annotation);
|
||||||
|
a['id'] = clip['id'] + '/' + a['id'];
|
||||||
a['in'] = Math.max(
|
a['in'] = Math.max(
|
||||||
clip['position'],
|
clip['position'],
|
||||||
a['in'] - clip['in'] + clip['position']
|
a['in'] - clip['in'] + clip['position']
|
||||||
|
|
Loading…
Reference in a new issue