allow for setting the selected id of an Ox.List to an id that is currently not in view

This commit is contained in:
rolux 2011-05-29 15:15:38 +02:00
commit 0e835cc116
4 changed files with 38 additions and 16 deletions

View file

@ -71,7 +71,7 @@ Ox.load('Geo', function() {
} else {
data.items = places;
if (options.query) {
// only case is key: 'id', value: ..., operator: '='
// only case is key: 'id', value: ..., operator: '^$'
data.items = data.items.filter(function(place) {
return place[options.query.key] == options.query.value;
});