hotfix for embedded links, pandora.isEmbeddableView needs to be fixed

This commit is contained in:
j 2013-12-24 06:52:27 +00:00
parent 941c4f9759
commit 1ac95407f8

View file

@ -249,6 +249,7 @@ pandora.clickLink = function(e) {
} else if ( } else if (
e.target.hostname == document.location.hostname e.target.hostname == document.location.hostname
&& !Ox.startsWith(e.target.pathname, '/static') && !Ox.startsWith(e.target.pathname, '/static')
&& (window.self == window.top || pandora.isEmbeddableView(e.target.href))
) { ) {
if (pandora.$ui.home && e.target.pathname != '/home') { if (pandora.$ui.home && e.target.pathname != '/home') {
pandora.$ui.home.fadeOutScreen(); pandora.$ui.home.fadeOutScreen();
@ -1755,6 +1756,11 @@ pandora.isClipView = function(view, item) {
).indexOf(view) > -1; ).indexOf(view) > -1;
}; };
pandora.isEmbeddableView = function(url) {
//fixme. actually return true for embeddable views
return false;
};
pandora.isEmbedURL = function(url) { pandora.isEmbedURL = function(url) {
url = url || document.location.href; url = url || document.location.href;
var hash = Ox.parseURL(url).hash; var hash = Ox.parseURL(url).hash;