in embed mode, when receiving a url as message, push it

This commit is contained in:
rolux 2013-02-22 02:28:24 +00:00
parent 625793ec76
commit 7be3a85074

View file

@ -220,11 +220,7 @@ appPanel
window: $(window)
.on({
beforeunload: pandora.beforeunloadWindow,
resize: function() {
if (!isEmbed) {
pandora.resizeWindow();
}
},
resize: pandora.resizeWindow,
unload: pandora.unloadWindow
})
},
@ -319,12 +315,11 @@ appPanel
if (isEmbed) {
pandora.$ui.embedPanel = pandora.ui.embedPanel().display();
window.addEventListener('message', function(e) {
Ox.print('MESSAGE:' e.data);
var url = e.data;
if (pandora.isEmbedURL(url)) {
pandora.url.push(url);
pandora.URL.push(url);
}
})
});
} else {
pandora.$ui.appPanel = pandora.ui.appPanel().display();
Ox.Request.requests() && pandora.$ui.loadingIcon.start();