diff --git a/static/js/utils.js b/static/js/utils.js index 1661077ac..9d28352f8 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;