]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
/details.html, not /details
authorMarc Tobias Metten <mtmail@gmx.net>
Thu, 8 Mar 2018 00:45:31 +0000 (01:45 +0100)
committerMarc Tobias Metten <mtmail@gmx.net>
Thu, 8 Mar 2018 00:45:31 +0000 (01:45 +0100)
TODO.md
src/assets/js/detailpage.js
src/templates/reversepage.hbs
src/templates/searchpage.hbs

diff --git a/TODO.md b/TODO.md
index eb3ca6bd569486aee45149045f539f9afe98ffc2..e44d7788b5d02ed7e6f1404e840847b8382c2e3c 100644 (file)
--- 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
 
index aa3d771e4700cea0cd1148a07c1cb72694be83c3..302e54a68a8cf2bb6c23d1f9ad200ff511049d8f 100644 (file)
@@ -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'
     };
index 5f524b24902a5c705347e317ea3d39caf1006f8b..592e7b9fdd32dd0414d57fc82cc3441698e2163a 100644 (file)
@@ -10,7 +10,7 @@
         <span class="type">{{formatLabel aResult}}</span>
         <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-        <a class="btn btn-default btn-xs details" href="details?place_id={{aResult.place_id}}">details</a>
+        <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
     </div>
 {{/inline}}
 
index 0298f448ad70c3ca890019dd3d57bac694a06128..479bdd41381d5b4a3cdf9c45b3e2af469247cf83 100644 (file)
@@ -9,7 +9,7 @@
         <span class="type">{{formatLabel aResult}}</span>
         <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-        <a class="btn btn-default btn-xs details" href="details?place_id={{aResult.place_id}}">details</a>
+        <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
     </div>
 {{/inline}}