From b70bfe147c22953285a136f7c9f02cda1cec0f2a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 Apr 2011 01:33:51 +0200 Subject: [PATCH] Ox splitup --- pandora/templates/index.html | 7 ++----- static/js/pandora.js | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pandora/templates/index.html b/pandora/templates/index.html index 3882d03..44336b9 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 fb37261..d93be34 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 @@ } } -})(); +});