Skip to content

Commit

Permalink
fix nearby activity hide on refresh map
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 12, 2025
1 parent 2c4adae commit 60139f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ function showLocations(ids, lats, lons, num_machines, latLng) {
document.getElementById("map_canvas").innerHTML = "<p id='not_found' class='font28 red bold'>" + "NOT FOUND. PLEASE SEARCH AGAIN." + "<br />" + "Use the dropdown or the autocompleting textbox if you want results." + "</p>";
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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 60139f3

Please sign in to comment.