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

@ -48,9 +48,9 @@ Ox.load('Geo', function() {
var $listmap = new Ox.ListMap({
addPlace: function(data, callback) {
var id = Ox.encodeBase32(Ox.uid());
Ox.print('addplace', getGeonameSort(data.place.geoname));
places.push(Ox.extend(data.place, {
geonameSort: getGeonameSort(data.place.geoname),
Ox.print('addplace', getGeonameSort(data.geoname));
places.push(Ox.extend(data, {
geonameSort: getGeonameSort(data.geoname),
id: id
}));
callback({