X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/18777b41ea4aa1364dbf33e86e6cb65762b53296..36203ebe261d38bab5a17ac866c6ed384d70e978:/app/views/browse/start.rjs diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index 35cd56591..e257005a3 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -41,7 +41,7 @@ page << <= 15) { useMap(); } else { - $("browse_status").innerHTML = "Zoom in or Select an area of the map to view."; + setStatus("Zoom in or select an area of the map to view"); } } } @@ -74,7 +74,7 @@ page << < 0.25) { - $("browse_status").innerHTML = "Unable to load: Bounding box size of " + size + " is too large. (Must be smaller than 0.25)
"; + setStatus("Unable to load: Bounding box size of " + size + " is too large (must be smaller than 0.25)"); } else { - loadGML("/api/0.5/map?bbox=" + projected.toBBOX()); + loadGML("/api/#{API_VERSION}/map?bbox=" + projected.toBBOX()); } } function loadGML(url) { - $("browse_status").innerHTML = "Loading..."; - $("browse_object_list").innerHTML = ""; + setStatus("Loading..."); + $("browse_content").innerHTML = ""; if (!browseDataLayer) { var style = new OpenLayers.Style(); @@ -215,8 +215,8 @@ page << <