1
0
Fork 0
forked from 0x2620/oxjs

use correct api for add/edit/remove place; fix demo

This commit is contained in:
rolux 2011-05-30 11:09:52 +02:00
commit 120a28eaa2
2 changed files with 4 additions and 4 deletions

View file

@ -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]});