Merge branch 'release/0.0.13.3'
This commit is contained in:
commit
ad175ed342
6 changed files with 8 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version 0.0.13.3 (2016-10-03)
|
||||||
|
- Use the actual results of places in `newnote.js` (issue#21)
|
||||||
|
|
||||||
## Version 0.0.13.2 (2016-10-03)
|
## Version 0.0.13.2 (2016-10-03)
|
||||||
- Fix issues with fetch API and places when using micropub client
|
- Fix issues with fetch API and places when using micropub client
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -31,10 +31,10 @@ function addPlacesMap(latitude, longitude, uncertainty) {
|
||||||
if (j.length > 0) {
|
if (j.length > 0) {
|
||||||
var i;
|
var i;
|
||||||
var places = [];
|
var places = [];
|
||||||
for (i = 0; i < j.length; ++i) {
|
for (i = 0; i < j.places.length; ++i) {
|
||||||
var latlng = parseLocation(j[i].location);
|
var latlng = parseLocation(j[i].location);
|
||||||
var name = j[i].name;
|
var name = j.places[i].name;
|
||||||
var slug = j[i].slug;
|
var slug = j.places[i].slug;
|
||||||
places.push([name, slug, latlng[0], latlng[1]]);
|
places.push([name, slug, latlng[0], latlng[1]]);
|
||||||
}
|
}
|
||||||
//add a map with the nearby places
|
//add a map with the nearby places
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue