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