X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/e0d087f4a2b5fbc758de432f8932de296279a82f..a82c578374260ba3450fbd475da5739b9d92a4ce:/src/assets/js/searchpage.js diff --git a/src/assets/js/searchpage.js b/src/assets/js/searchpage.js index be9c20a..0aeab64 100755 --- a/src/assets/js/searchpage.js +++ b/src/assets/js/searchpage.js @@ -339,6 +339,7 @@ function search_page_load() { aPlace = null; } + context.bSearchRan = true; context.aPlace = aPlace; render_template($('main'), 'reversepage-template', context); @@ -406,12 +407,13 @@ function search_page_load() { fetch_from_api('search', api_request_params, function (aResults) { + context.bSearchRan = true; context.aSearchResults = aResults; if (aResults.length >= 10) { var aExcludePlaceIds = []; if (search_params.has('exclude_place_ids')) { - aExcludePlaceIds.search_params.get('exclude_place_ids').split(','); + aExcludePlaceIds = search_params.get('exclude_place_ids').split(','); } for (var i = 0; i < aResults.length; i += 1) { aExcludePlaceIds.push(aResults[i].place_id);