From 0485a95b2fcec22bfe4bf0f67024e03e057df4c1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 26 Dec 2014 12:03:42 +0000 Subject: [PATCH] fix parsing url parsing of id/annotation, closes #2635 --- static/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 399ac50b..dc4387bd 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1609,7 +1609,7 @@ pandora.getSpan = function(state, val, callback) { }); } else { isName = val[0] == '@'; - isVideoView = pandora.isVideoView(state.view); + isVideoView = pandora.isVideoView(state.view, state.item); canBeAnnotation = state.item && (!state.view || isVideoView) && !isName; canBeEvent = !state.view || state.view == 'calendar'; canBePlace = !state.view || state.view == 'map'; @@ -1618,7 +1618,7 @@ pandora.getSpan = function(state, val, callback) { if (id) { Ox.Log('URL', 'id?', id) state.span = id; - state.view = pandora.user.ui.videoView; + state.view = state.view || pandora.user.ui.videoView; callback(); } else { getId(canBePlace ? 'place' : '', function(id) {