some work towards editing places
This commit is contained in:
parent
ab8e876609
commit
c6c1c9b15b
6 changed files with 58 additions and 15 deletions
|
|
@ -23,18 +23,18 @@ pandora.ui.placesDialog = function() {
|
|||
}, data), callback);
|
||||
},
|
||||
addPlace: function(place, callback) {
|
||||
Ox.print('ADDPLACE', place);
|
||||
pandora.api.addPlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
editPlace: function(place, callback) {
|
||||
Ox.print('EDITPLACE', place);
|
||||
pandora.api.editPlace(place, callback);
|
||||
pandora.api.editPlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
removePlace: function(place, callback) {
|
||||
Ox.print('REMOVEPLACE', place);
|
||||
pandora.api.removePlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue