simplify ListMap callbacks
This commit is contained in:
parent
97913473a0
commit
0ba2ae91e3
1 changed files with 9 additions and 9 deletions
|
@ -20,21 +20,21 @@ pandora.ui.placesDialog = function() {
|
||||||
query: {conditions: [], operator: ''}
|
query: {conditions: [], operator: ''}
|
||||||
}, data), callback);
|
}, data), callback);
|
||||||
},
|
},
|
||||||
addPlace: function(data, callback) {
|
addPlace: function(place, callback) {
|
||||||
Ox.print('ADDPLACE', data);
|
Ox.print('ADDPLACE', place);
|
||||||
pandora.api.addPlace(data.place, function(result) {
|
pandora.api.addPlace(place, function(result) {
|
||||||
Ox.Request.clearCache(); // fixme: remove
|
Ox.Request.clearCache(); // fixme: remove
|
||||||
callback(result);
|
callback(result);
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
editPlace: function(data, callback) {
|
editPlace: function(place, callback) {
|
||||||
Ox.print('EDITPLACE', data);
|
Ox.print('EDITPLACE', place);
|
||||||
pandora.api.editPlace(data.place, callback);
|
pandora.api.editPlace(place, callback);
|
||||||
},
|
},
|
||||||
removePlace: function(data, callback) {
|
removePlace: function(place, callback) {
|
||||||
Ox.print('REMOVEPLACE', data);
|
Ox.print('REMOVEPLACE', place);
|
||||||
pandora.api.removePlace(data.place, function(result) {
|
pandora.api.removePlace(place, function(result) {
|
||||||
Ox.Request.clearCache(); // fixme: remove
|
Ox.Request.clearCache(); // fixme: remove
|
||||||
callback(result);
|
callback(result);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue