From 66f3127579214eff7a5f82c2622c881310b06661 Mon Sep 17 00:00:00 2001 From: Marc Tobias Metten Date: Thu, 8 Mar 2018 01:45:31 +0100 Subject: [PATCH] /details.html, not /details --- TODO.md | 1 - src/assets/js/detailpage.js | 4 ++-- src/templates/reversepage.hbs | 2 +- src/templates/searchpage.hbs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index eb3ca6b..e44d778 100644 --- a/TODO.md +++ b/TODO.md @@ -42,7 +42,6 @@ http://localhost:8000/reverse.html?format=html&lat=52.3755991766591&lon=7.646484 * a new search causes a new pageview * webpack or grunt build framework * don't copy jquery/leaflet in /src, use dependency manager instead, e.g. https://bower.io/ -* update leaflet * add tests with fixtures * concatenate/minify JS and CSS diff --git a/src/assets/js/detailpage.js b/src/assets/js/detailpage.js index aa3d771..302e54a 100644 --- a/src/assets/js/detailpage.js +++ b/src/assets/js/detailpage.js @@ -54,8 +54,8 @@ jQuery(document).ready(function(){ var api_request_params = { place_id: search_params.get('place_id'), - place_id: search_params.get('osmtype'), - place_id: search_params.get('osmid'), + osmtype: search_params.get('osmtype'), + osmid: search_params.get('osmid'), group_parents: 1, format: 'json' }; diff --git a/src/templates/reversepage.hbs b/src/templates/reversepage.hbs index 5f524b2..592e7b9 100644 --- a/src/templates/reversepage.hbs +++ b/src/templates/reversepage.hbs @@ -10,7 +10,7 @@ {{formatLabel aResult}}

{{aResult.lat}},{{aResult.lon}}

- details + details {{/inline}} diff --git a/src/templates/searchpage.hbs b/src/templates/searchpage.hbs index 0298f44..479bdd4 100644 --- a/src/templates/searchpage.hbs +++ b/src/templates/searchpage.hbs @@ -9,7 +9,7 @@ {{formatLabel aResult}}

{{aResult.lat}},{{aResult.lon}}

- details + details {{/inline}} -- 2.39.5