From f053c8472336b386eaff72acdcdb8f8e148a3340 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 28 May 2008 23:46:55 +0000 Subject: [PATCH] Improve the layout of the browse sidebar a bit. --- app/views/browse/_start.rhtml | 8 +- app/views/browse/start.rjs | 160 +++++++++++++++++++++++----------- public/stylesheets/site.css | 12 +++ 3 files changed, 126 insertions(+), 54 deletions(-) diff --git a/app/views/browse/_start.rhtml b/app/views/browse/_start.rhtml index 00e1411b9..2e120c100 100644 --- a/app/views/browse/_start.rhtml +++ b/app/views/browse/_start.rhtml @@ -1,13 +1,13 @@ -
+
-

+

View data for current map view
Manually select a different area

-
+ -
+
diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index 35cd56591..04f5e12c9 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"); } } } @@ -126,7 +126,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()); } } function loadGML(url) { - $("browse_status").innerHTML = "Loading..."; - $("browse_object_list").innerHTML = ""; + setStatus("Loading..."); + $("browse_content").innerHTML = ""; if (!browseDataLayer) { var style = new OpenLayers.Style(); @@ -236,19 +236,23 @@ page << <