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);
|
Ox.Log('URL', 'getMetadataByIdOrName', item, view, str);
|
||||||
var isName = str[0] == '@',
|
var isName = str[0] == '@',
|
||||||
canBeAnnotation = (
|
canBeAnnotation = (
|
||||||
!view || view == 'video' || view == 'timeline'
|
!view || Ox.contains(['player', 'editor', 'timeline'], view)
|
||||||
) && item && !isName,
|
) && item && !isName,
|
||||||
canBeEvent = !view || view == 'calendar',
|
canBeEvent = !view || view == 'calendar',
|
||||||
canBePlace = !view || view == 'map';
|
canBePlace = !view || view == 'map';
|
||||||
|
|
Loading…
Reference in a new issue