From 1ac95407f86d3c1a86f7a7ab13b4837415ec747c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 24 Dec 2013 06:52:27 +0000 Subject: [PATCH] hotfix for embedded links, pandora.isEmbeddableView needs to be fixed --- static/js/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/utils.js b/static/js/utils.js index 1661077a..9d28352f 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -249,6 +249,7 @@ pandora.clickLink = function(e) { } else if ( e.target.hostname == document.location.hostname && !Ox.startsWith(e.target.pathname, '/static') + && (window.self == window.top || pandora.isEmbeddableView(e.target.href)) ) { if (pandora.$ui.home && e.target.pathname != '/home') { pandora.$ui.home.fadeOutScreen(); @@ -1755,6 +1756,11 @@ pandora.isClipView = function(view, item) { ).indexOf(view) > -1; }; +pandora.isEmbeddableView = function(url) { + //fixme. actually return true for embeddable views + return false; +}; + pandora.isEmbedURL = function(url) { url = url || document.location.href; var hash = Ox.parseURL(url).hash;