diff --git a/pandora/templates/index.html b/pandora/templates/index.html index 3882d037..44336b9c 100644 --- a/pandora/templates/index.html +++ b/pandora/templates/index.html @@ -11,13 +11,10 @@ if(typeof(console)=='undefined') { console.log = function() {}; } - + - - - - + diff --git a/static/js/pandora.js b/static/js/pandora.js index fb37261f..d93be347 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -7,7 +7,7 @@ // fixme: don't reload full right panel on sortSelect // fixme: clear items cache after login/logout -(function() { +Ox.UI(function() { window.pandora = new Ox.App({url: '/api/'}).launch(function(data) { @@ -3808,7 +3808,7 @@ delete obj[key]; } }); - Ox.length(obj) && pandora.api.setUI(obj); + Ox.len(obj) && pandora.api.setUI(obj); //alert('set ' + JSON.stringify(obj)) } } @@ -3977,4 +3977,4 @@ } } -})(); +});