update entities dialog
This commit is contained in:
parent
0e8dcac212
commit
5df2e6a40d
1 changed files with 4 additions and 8 deletions
|
@ -30,9 +30,9 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
$findInput = Ox.Input({
|
$findInput = Ox.Input({
|
||||||
|
changeOnKeypress: true,
|
||||||
clear: true,
|
clear: true,
|
||||||
placeholder: 'Find',
|
placeholder: 'Find',
|
||||||
submitOnKeypress: true,
|
|
||||||
width: 122
|
width: 122
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
|
@ -72,18 +72,14 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
items: function(options, callback) {
|
items: function(options, callback) {
|
||||||
pandora.api.findEntities({
|
pandora.api.findEntities(Ox.extend(Ox.clone(options), {
|
||||||
keys: options.keys,
|
|
||||||
positions: options.positions,
|
|
||||||
query: {
|
query: {
|
||||||
conditions: [
|
conditions: [
|
||||||
{key: 'type', operator: '==', value: type}
|
{key: 'type', operator: '==', value: type}
|
||||||
].concat(options.query.conditions),
|
].concat(options.query.conditions),
|
||||||
operator: '&'
|
operator: '&'
|
||||||
},
|
}
|
||||||
range: options.range,
|
}), callback);
|
||||||
sort: options.sort
|
|
||||||
}, callback);
|
|
||||||
},
|
},
|
||||||
sort: [{key: 'name', operator: '+'}],
|
sort: [{key: 'name', operator: '+'}],
|
||||||
scrollbarVisible: true,
|
scrollbarVisible: true,
|
||||||
|
|
Loading…
Reference in a new issue