forked from 0x2620/oxjs
use correct api for add/edit/remove place; fix demo
This commit is contained in:
parent
c99e7af1bd
commit
120a28eaa2
2 changed files with 4 additions and 4 deletions
|
|
@ -572,7 +572,7 @@ Ox.ListMap = function(options, self) {
|
|||
}
|
||||
//that.triggerEvent('addplace', {place: place});
|
||||
if (self.isAsync) {
|
||||
self.options.addPlace({place: place}, function(result) {
|
||||
self.options.addPlace(place, function(result) {
|
||||
place.id = result.data.id;
|
||||
self.selectedPlace = place.id;
|
||||
self.$list.reloadList().options({selected: [place.id]});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue