fix previous fix
This commit is contained in:
parent
5dfc1f48fc
commit
87063818f7
2 changed files with 2 additions and 4 deletions
|
@ -435,7 +435,6 @@
|
|||
"title": "Places",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Place",
|
||||
"overlap": true,
|
||||
"type": "place"
|
||||
},
|
||||
{
|
||||
|
@ -443,7 +442,6 @@
|
|||
"title": "Events",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Event",
|
||||
"overlap": true,
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
|
@ -451,7 +449,7 @@
|
|||
"title": "Keywords",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Keyword",
|
||||
"overlap": true,
|
||||
"isSubtitle": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -793,7 +793,7 @@ pandora.getVideoOptions = function(data) {
|
|||
var canPlayClips = data.editable || pandora.site.capabilities.canPlayClips[pandora.user.level] >= data.rightslevel,
|
||||
canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel,
|
||||
options = {},
|
||||
subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true);
|
||||
subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true).id;
|
||||
options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer].items.map(function(subtitle) {
|
||||
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
|
||||
}) : [];
|
||||
|
|
Loading…
Reference in a new issue