update embed panel

This commit is contained in:
rolux 2013-02-21 12:48:17 +05:30
parent 792766a59b
commit f7e6f1b453

View file

@ -151,11 +151,12 @@ pandora.ui.embedPanel = function() {
}
if (options.showAnnotations) {
video.annotations = video.annotations.filter(function(layer) {
return Ox.contains(options.showLayers, layer.id);
});
if (options.playInToOut) {
video.annotations.forEach(function(layer) {
var items;
if (Ox.contains(options.showLayers, layer.id)) {
items = [];
var items = [];
layer.items.forEach(function(item) {
if ((
item['in'] >= options['in'] && item['in'] <= options.out
@ -166,7 +167,6 @@ pandora.ui.embedPanel = function() {
}
});
layer.items = items;
}
});
}
$annotations = Ox.AnnotationPanel(Ox.extend({