forked from 0x2620/pandora
hotfix for embedded links, pandora.isEmbeddableView needs to be fixed
This commit is contained in:
parent
941c4f9759
commit
1ac95407f8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue