forked from 0x2620/pandora
make pandora.json dynamic
This commit is contained in:
parent
24434a73ed
commit
7a01749b66
7 changed files with 22 additions and 5 deletions
|
|
@ -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) {
|
|||
|
||||
});
|
||||
|
||||
*/
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue