use new list query option

This commit is contained in:
j 2012-06-20 12:47:15 +02:00
parent aaa6981a54
commit 146a4e5756
3 changed files with 10 additions and 25 deletions

View file

@ -25,11 +25,7 @@ pandora.ui.namesDialog = function() {
operator: '|' operator: '|'
}; };
$list.options({ $list.options({
items: function(data, callback) { query: query,
return pandora.api.findNames(Ox.extend(data, {
query: query
}), callback);
}
}); });
} }
}), }),

View file

@ -23,11 +23,7 @@ pandora.ui.titlesDialog = function() {
operator: '|' operator: '|'
}; };
$list.options({ $list.options({
items: function(data, callback) {
return pandora.api.findTitles(Ox.extend(data, {
query: query query: query
}), callback);
}
}); });
} }
}), }),

View file

@ -360,16 +360,13 @@ pandora.ui.usersDialog = function() {
], ],
columnsRemovable: true, columnsRemovable: true,
columnsVisible: true, columnsVisible: true,
items: function(data, callback) { items: pandora.api.findUsers,
pandora.api.findUsers(Ox.extend(data, {
query: { query: {
conditions: [ conditions: [
{key: 'level', value: 'guest', operator: '!='}, {key: 'level', value: 'guest', operator: '!='},
{key: 'level', value: 'robot', operator: '!='} {key: 'level', value: 'robot', operator: '!='}
], ],
operator: '&' operator: '&'
}
}), callback);
}, },
keys: ['notes', 'groups'], keys: ['notes', 'groups'],
max: -1, max: -1,
@ -976,11 +973,7 @@ pandora.ui.usersDialog = function() {
operator: key == 'all' && value ? '|' : '&' operator: key == 'all' && value ? '|' : '&'
}; };
$list.options({ $list.options({
items: function(data, callback) {
return pandora.api.findUsers(Ox.extend(data, {
query: query query: query
}), callback);
}
}); });
} }