diff --git a/pandora/templates/api.html b/pandora/templates/api.html index a4247a8c..ec8436a0 100644 --- a/pandora/templates/api.html +++ b/pandora/templates/api.html @@ -5,15 +5,12 @@ - - + - - - +
diff --git a/static/js/pandora.api.js b/static/js/pandora.api.js index 5a7593e1..9cb34291 100755 --- a/static/js/pandora.api.js +++ b/static/js/pandora.api.js @@ -1,21 +1,24 @@ /*** Pandora API ***/ +Ox.load('UI', { + hideScreen: false, + showScreen: true, + theme: 'classic' +}, function() { + var app = new Ox.App({ apiURL: '/api/', init: 'init', -}).launch(function(data) { +}).bindEvent('load', function(event, data) { app.config = data.config; app.user = data.user; - if (app.user.group == 'guest') { - app.user = data.config.user; - $.browser.safari && Ox.theme('modern'); - } app.config.default_info = '