diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 52b7ef35..18949338 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -130,6 +130,7 @@ function showLocations(ids, lats, lons, num_machines, latLng) { document.getElementById("map_canvas").innerHTML = "

" + "NOT FOUND. PLEASE SEARCH AGAIN." + "
" + "Use the dropdown or the autocompleting textbox if you want results." + "

"; mapLoaded = 0; hideRefresh(); + document.getElementById('nearby_activity_button').style.display = "none"; } else if (locationIDs.length == 0 && latLng.length === 2) { map.fitBounds(bounds, { padding: 50, animate: false }); map.setZoom(18); @@ -210,7 +211,6 @@ function redone() { } document.getElementById('search_link_wrapper').style.display = "none"; - document.getElementById('nearby_activity_button').style.display = "none"; $('#locations').html(loadingHTML()); $.get(url, function (data) { $('#locations').html(data);