forked from 0x2620/pandora
fix isClipsQuery check
This commit is contained in:
parent
d5ace7aeca
commit
7cc1504069
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ pandora.ui.list = function() {
|
|||
item: function(data, sort, size) {
|
||||
size = 128;
|
||||
var clipsQuery = pandora.getClipsQuery(),
|
||||
isClipsQuery = !!clipsQuery.conditions.length,
|
||||
isClipsQuery = clipsQuery.conditions.length > 1,
|
||||
ratio = ui.icons == 'posters'
|
||||
? (ui.showSitePosters ? pandora.site.posters.ratio : data.posterRatio) : 1,
|
||||
url = pandora.getMediaURL('/' + data.id + '/' + (
|
||||
|
@ -352,7 +352,7 @@ pandora.ui.list = function() {
|
|||
},
|
||||
items: function(data, callback) {
|
||||
var clipsQuery = pandora.getClipsQuery(),
|
||||
isClipsQuery = !!clipsQuery.conditions.length;
|
||||
isClipsQuery = clipsQuery.conditions.length > 1;
|
||||
pandora.api.find(Ox.extend(data, Ox.extend({
|
||||
query: ui.find
|
||||
}, isClipsQuery ? {clips: {
|
||||
|
|
Loading…
Reference in a new issue