fix a but in getMetadataByIdOrName method

This commit is contained in:
rolux 2013-02-20 12:04:20 +05:30
parent 10b53ee63d
commit 2196abc548

View file

@ -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';