X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88105d9c643519e02082ba9cc5044bb0dfdcb7b9..d6a1ccf6b42b3eaaffe9fa417eeb4e6f56b5cdac:/app/views/browse/start.rjs diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index 35cd56591..f38b1dc80 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -15,6 +15,8 @@ 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,16 +215,16 @@ page << <