From de0977d3b9b354c23cdc9291156d08da9bb6988d 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 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 @@
}
}
-})();
+});