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: '|'
};
$list.options({
items: function(data, callback) {
return pandora.api.findNames(Ox.extend(data, {
query: query
}), callback);
}
query: query,
});
}
}),

View file

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

View file

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