fix poster frames for new lists
This commit is contained in:
parent
686bd8c238
commit
1db88b4c96
3 changed files with 17 additions and 7 deletions
|
|
@ -192,7 +192,9 @@ pandora.addFolderItem = function(section) {
|
|||
}, function(result) {
|
||||
var posterFrames = result
|
||||
? result.data.items.map(function(item) {
|
||||
return {item: item.id, position: item.posterFrame};
|
||||
return section == 'documents'
|
||||
? {document: item.id}
|
||||
: {item: item.id, position: item.posterFrame};
|
||||
}) : [];
|
||||
posterFrames = posterFrames.length == 1
|
||||
? Ox.repeat([posterFrames[0]], 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue