From 1f3d39524f88772ef44c2fe92d013c2d539b4a15 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 28 May 2011 13:18:24 +0200 Subject: [PATCH] fix embed --- pandora/templates/embed.html | 7 ++----- static/js/pandora.embed.js | 7 ++++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pandora/templates/embed.html b/pandora/templates/embed.html index d3108940..c4e2cc08 100644 --- a/pandora/templates/embed.html +++ b/pandora/templates/embed.html @@ -4,19 +4,16 @@ {{settings.SITENAME}} - - + - - - + diff --git a/static/js/pandora.embed.js b/static/js/pandora.embed.js index 5693924b..7ce67285 100755 --- a/static/js/pandora.embed.js +++ b/static/js/pandora.embed.js @@ -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) - .appendTo(document.body); + ui.info = new app.info(item) + .appendTo(document.body); +}); });