forked from 0x2620/oxjs
changes in video editor and list map
This commit is contained in:
parent
76466e7eeb
commit
353fce1f14
5 changed files with 41 additions and 26 deletions
|
|
@ -530,6 +530,7 @@ Ox.Map = function(options, self) {
|
|||
var place = getSelectedPlace(),
|
||||
country = Ox.getCountryByGeoname(place.geoname);
|
||||
Ox.extend(place, data);
|
||||
Ox.print('addPlaceToPlaces, place name:', place.name)
|
||||
self.options.selected = place.id;
|
||||
place.countryCode = country ? country.code : '';
|
||||
Ox.Log('Map', 'addP2P', data, place);
|
||||
|
|
@ -1132,6 +1133,7 @@ Ox.Map = function(options, self) {
|
|||
self.places.splice(Ox.getIndexById(self.places, place.id), 1);
|
||||
self.resultPlace && self.resultPlace.remove();
|
||||
self.resultPlace = place;
|
||||
Ox.print('removed place, place is now', place);
|
||||
place.marker.update();
|
||||
}
|
||||
|
||||
|
|
@ -1537,7 +1539,7 @@ Ox.Map = function(options, self) {
|
|||
|
||||
that.value = function(id, key, value) {
|
||||
// fixme: should be like the corresponding List/TextList/etc value function
|
||||
Ox.Log('Map', 'Map.value', id, key, value)
|
||||
Ox.print('Map', 'Map.value', id, key, value)
|
||||
getPlaceById(id).options(key, value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue