load places

This commit is contained in:
j 2011-06-18 20:48:49 +02:00
parent f4bd971f0a
commit 30fa62962d
2 changed files with 8 additions and 5 deletions

View file

@ -92,8 +92,8 @@ pandora.reloadGroups = function(i) {
} }
}); });
} else if (view == 'map') { } else if (view == 'map') {
pandora.$ui.list.options({ pandora.$ui.map.options({
items: function(data, callback) { places: function(data, callback) {
return pandora.api.findPlaces($.extend(data, { return pandora.api.findPlaces($.extend(data, {
itemQuery: query itemQuery: query
}), callback); }), callback);

View file

@ -138,9 +138,12 @@ pandora.ui.list = function(view) { // fixme: remove view argument
element: pandora.$ui.map = Ox.Map({ element: pandora.$ui.map = Ox.Map({
height: window.innerHeight - pandora.user.ui.showGroups * pandora.user.ui.groupsSize - 61, height: window.innerHeight - pandora.user.ui.showGroups * pandora.user.ui.groupsSize - 61,
places: function(data, callback) { places: function(data, callback) {
return pandora.api.findPlaces($.extend({ var itemQuery = pandora.Query.toObject(),
query: {conditions: [], operator: ''} query = {conditions:[]};
}, data), callback); return pandora.api.findPlaces($.extend(data, {
itemQuery: itemQuery,
query: query
}), callback);
}, },
showTypes: true, showTypes: true,
toolbar: true, toolbar: true,