forked from 0x2620/pandora
update entities dialog
This commit is contained in:
parent
5e1985478c
commit
0e8dcac212
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
items: function(options, callback) {
|
items: function(options, callback) {
|
||||||
pandora.api.findEntities({
|
pandora.api.findEntities({
|
||||||
keys: options.keys,
|
keys: options.keys,
|
||||||
|
positions: options.positions,
|
||||||
query: {
|
query: {
|
||||||
conditions: [
|
conditions: [
|
||||||
{key: 'type', operator: '==', value: type}
|
{key: 'type', operator: '==', value: type}
|
||||||
|
@ -106,6 +107,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
) + ' ' + Ox._('selected');
|
) + ' ' + Ox._('selected');
|
||||||
selected = data.ids;
|
selected = data.ids;
|
||||||
renderEntity();
|
renderEntity();
|
||||||
|
$deselectButton[data.ids.length ? 'show' : 'hide']();
|
||||||
renderForm();
|
renderForm();
|
||||||
$itemStatus.html(text[0].toUpperCase() + text.slice(1));
|
$itemStatus.html(text[0].toUpperCase() + text.slice(1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue