forked from 0x2620/pandora
fix a but in getMetadataByIdOrName method
This commit is contained in:
parent
10b53ee63d
commit
2196abc548
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ pandora.getMetadataByIdOrName = function(item, view, str, callback) {
|
|||
Ox.Log('URL', 'getMetadataByIdOrName', item, view, str);
|
||||
var isName = str[0] == '@',
|
||||
canBeAnnotation = (
|
||||
!view || view == 'video' || view == 'timeline'
|
||||
!view || Ox.contains(['player', 'editor', 'timeline'], view)
|
||||
) && item && !isName,
|
||||
canBeEvent = !view || view == 'calendar',
|
||||
canBePlace = !view || view == 'map';
|
||||
|
|
Loading…
Reference in a new issue