clipList: handle copy event

This commit is contained in:
rolux 2013-07-13 22:59:51 +00:00 committed by j
parent 9f6e244beb
commit f521b54f5a

View file

@ -113,6 +113,19 @@ pandora.ui.clipList = function(videoRatio) {
})
.addClass('OxMedia')
.bindEvent({
copy: function(data) {
var items = data.ids.map(function(id) {
var item = !ui.item ? id.split('/')[0] : ui.item,
annotation = that.value(id, 'annotations')[0].id;
return {
annotation: annotation,
'in': that.value(id, 'in'),
item: item,
out: that.value(id, 'out')
}
})
Ox.Clipboard.copy(items, 'clip');
},
init: function(data) {
if (!ui.item && ui.listView == 'clip'/* && pandora.$ui.statusbar*/) {
pandora.$ui.statusbar.set('total', data);