clear cache on remove, do not overwrite query but just set default, within
This commit is contained in:
parent
59f7421922
commit
abb6f82b80
2 changed files with 12 additions and 5 deletions
|
|
@ -16,9 +16,9 @@ pandora.ui.placesDialog = function() {
|
|||
content: app.$ui.placesElement = new Ox.ListMap({
|
||||
height: height - 48,
|
||||
places: function(data, callback) {
|
||||
return pandora.api.findPlaces($.extend(data, {
|
||||
return pandora.api.findPlaces($.extend({
|
||||
query: {conditions: [], operator: ''}
|
||||
}), callback);
|
||||
}, data), callback);
|
||||
},
|
||||
addPlace: function(data, callback) {
|
||||
Ox.print('ADDPLACE', data);
|
||||
|
|
@ -34,7 +34,10 @@ pandora.ui.placesDialog = function() {
|
|||
},
|
||||
removePlace: function(data, callback) {
|
||||
Ox.print('REMOVEPLACE', data);
|
||||
pandora.api.removePlace(data.id, callback);
|
||||
pandora.api.removePlace(data.place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
width: width
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue