post message to update embed frame url

This commit is contained in:
rolux 2013-02-21 21:37:59 +05:30
parent ab4dfbd340
commit 6605fb7b38

View file

@ -318,6 +318,13 @@ appPanel
Ox.Theme(pandora.user.ui.theme);
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);
}
})
} else {
pandora.$ui.appPanel = pandora.ui.appPanel().display();
Ox.Request.requests() && pandora.$ui.loadingIcon.start();