forked from 0x2620/pandora
move player and editor out of item.js
This commit is contained in:
parent
58215ca1a6
commit
9e1294b801
4 changed files with 364 additions and 385 deletions
|
|
@ -841,9 +841,9 @@ pandora.getVideoOptions = function(data) {
|
|||
return pandora.getVideoUrl(data.item || pandora.user.ui.item, resolution, i + 1);
|
||||
});
|
||||
});
|
||||
options.layers = [];
|
||||
options.annotations = [];
|
||||
pandora.site.layers.forEach(function(layer, i) {
|
||||
options.layers[i] = Ox.extend({}, layer, {
|
||||
options.annotations[i] = Ox.extend({}, layer, {
|
||||
items: data.layers[layer.id].map(function(annotation) {
|
||||
annotation.date = Ox.formatDate(annotation.modified.substr(0, 10), '%B %e, %Y');
|
||||
annotation.duration = Math.abs(annotation.out - annotation['in']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue