From 2196abc548fdacf0e302b6a6f638bc22c0d46dc1 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 12:04:20 +0530 Subject: [PATCH] fix a but in getMetadataByIdOrName method --- static/js/pandora/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 587fe4588..530f4ad3d 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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';