make pandora.json dynamic

This commit is contained in:
j 2010-09-07 15:08:23 +02:00
commit 7a01749b66
7 changed files with 22 additions and 5 deletions

View file

@ -3,10 +3,10 @@
***/
var app = new Ox.App({
config: '/static/json/pandora.json',
config: '/pandora.json',
init: 'hello',
id: 'oxdb',
name: 'OxDB',
id: site.id,
name: site.name,
requestURL: '/api/'
}).launch(function(data) {
Ox.print('data', data)
@ -521,7 +521,7 @@ app.constructList = function(view) {
id: data['id'],
info: data[info],
title: data.title + (data.director ? ' (' + data.director + ')' : ''),
url: 'http://0xdb.org/' + data.id + '/poster.' + size + '.' + 'jpg',
url: 'http://0xdb.org/' + data.id + '/poster.' + size + '.' + 'jpg', //url: data.poster.url.replace(/.jpg/, size + '.jpg'),
width: data.poster.width || 80 // fixme: remove later
};
},
@ -1941,4 +1941,4 @@ app.getGroupWidth = function(pos, panelWidth) {
});
*/
*/