fix embed

This commit is contained in:
j 2011-05-28 13:18:24 +02:00
parent 5ca80fd7ee
commit f113a170f3
2 changed files with 6 additions and 8 deletions

View file

@ -4,19 +4,16 @@
<title>{{settings.SITENAME}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" type="image/png" href="/static/png/icon.16.png"/>
<link rel="stylesheet" type="text/css" href="/static/oxjs/build/css/ox.ui.css"/>
<script type='text/javascript'>
if(typeof(console)=='undefined') {
console = {};
console.log = function() {};
}
</script>
<script type="text/javascript" src="/static/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/static/oxjs/build/jquery/jquery.js"></script>
<script type="text/javascript" src="/static/js/jquery/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="/static/js/jquery/jquery.videosupport.js"></script>
<script type="text/javascript" src="/static/oxjs/build/js/ox.load.js"></script>
<script type="text/javascript" src="/static/oxjs/build/js/ox.js"></script>
<script type="text/javascript" src="/static/oxjs/build/js/ox.ui.js"></script>
<script type="text/javascript" src="/static/oxjs/build/Ox.js"></script>
<script type="text/javascript" src="/static/js/pandora.embed.js"></script>
</head>
<body></body>

View file

@ -1,7 +1,7 @@
/***
Pandora embed
***/
Ox.load('UI', function() {
var pandora = new Ox.App({
apiURL: '/api/',
}).launch(function(data) {
@ -56,6 +56,7 @@ var pandora = new Ox.App({
}
};
var item = document.location.pathname.split('/')[1];
ui.info= new app.info(item)
ui.info = new app.info(item)
.appendTo(document.body);
});
});