editor: pass item title to annotations export dialog

This commit is contained in:
rolux 2014-09-18 17:24:38 +02:00
parent 8dc036bae3
commit 32733bdefa

View file

@ -172,7 +172,12 @@ pandora.ui.editor = function(data) {
pandora.$ui.embedVideoDialog = pandora.ui.embedVideoDialog().open();
},
exportannotations: function() {
pandora.$ui.exportAnnotationsDialog = pandora.ui.exportAnnotationsDialog().open();
pandora.api.get({
id: ui.item,
keys: ['title']
}, function(result) {
pandora.$ui.exportAnnotationsDialog = pandora.ui.exportAnnotationsDialog({title: result.data.title}).open();
})
},
find: function(data) {
pandora.UI.set({itemFind: data.find});