remove subtitles.sort from 0xdb config, duration should always be >=0
This commit is contained in:
parent
f3d20abe99
commit
fbe8c9160b
3 changed files with 2 additions and 6 deletions
|
|
@ -803,7 +803,7 @@ pandora.getVideoOptions = function(data) {
|
|||
pandora.site.layers.forEach(function(layer, i) {
|
||||
options.layers[i] = Ox.extend({}, layer, {
|
||||
items: data.layers[layer.id].map(function(annotation) {
|
||||
annotation.duration = annotation.out - annotation['in'];
|
||||
annotation.duration = Math.abs(annotation.out - annotation['in']);
|
||||
annotation.editable = annotation.editable
|
||||
|| annotation.user == pandora.user.username
|
||||
|| pandora.site.capabilities['canEditAnnotations'][pandora.user.level];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue