forked from 0x2620/pandora
in list/grid/timelines/clips view, immediaterly return request data from items function (we want to pass user.ui.find a.k.a. query with the list's init event)
This commit is contained in:
parent
d520582f00
commit
8ee58da2d6
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,7 @@ pandora.ui.list = function() {
|
||||||
pandora.api.find(Ox.extend(data, {
|
pandora.api.find(Ox.extend(data, {
|
||||||
query: pandora.user.ui.find
|
query: pandora.user.ui.find
|
||||||
}), callback);
|
}), callback);
|
||||||
|
return Ox.clone(data, true);
|
||||||
},
|
},
|
||||||
scrollbarVisible: true,
|
scrollbarVisible: true,
|
||||||
selected: pandora.user.ui.listSelection,
|
selected: pandora.user.ui.listSelection,
|
||||||
|
@ -159,6 +160,7 @@ pandora.ui.list = function() {
|
||||||
pandora.api.find(Ox.extend(data, {
|
pandora.api.find(Ox.extend(data, {
|
||||||
query: pandora.user.ui.find
|
query: pandora.user.ui.find
|
||||||
}), callback);
|
}), callback);
|
||||||
|
return Ox.clone(data, true);
|
||||||
},
|
},
|
||||||
keys: ['director', 'id', 'posterRatio', 'title', 'year'],
|
keys: ['director', 'id', 'posterRatio', 'title', 'year'],
|
||||||
selected: pandora.user.ui.listSelection,
|
selected: pandora.user.ui.listSelection,
|
||||||
|
@ -229,6 +231,7 @@ pandora.ui.list = function() {
|
||||||
keys: []
|
keys: []
|
||||||
}
|
}
|
||||||
}), callback);
|
}), callback);
|
||||||
|
return Ox.clone(data, true);
|
||||||
},
|
},
|
||||||
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'title', 'videoRatio', 'year'],
|
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'title', 'videoRatio', 'year'],
|
||||||
selected: pandora.user.ui.listSelection,
|
selected: pandora.user.ui.listSelection,
|
||||||
|
@ -341,6 +344,7 @@ pandora.ui.list = function() {
|
||||||
items: 1000000,
|
items: 1000000,
|
||||||
keys: []
|
keys: []
|
||||||
}} : {})), callback);
|
}} : {})), callback);
|
||||||
|
return Ox.clone(data, true);
|
||||||
},
|
},
|
||||||
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'rendered', 'title', 'year'],
|
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'rendered', 'title', 'year'],
|
||||||
selected: pandora.user.ui.listSelection,
|
selected: pandora.user.ui.listSelection,
|
||||||
|
|
Loading…
Reference in a new issue