From 877724813ce3b9bc8b3a33a1544bdc4e27d2f2af Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 28 Oct 2007 16:46:10 +0000 Subject: [PATCH] Fix tab breakage and make key update as zoom level changes. --- app/views/site/_key.rhtml | 17 +++++++++++++---- app/views/site/_sidebar.rhtml | 12 ++++++++++-- app/views/site/index.rhtml | 2 ++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/app/views/site/_key.rhtml b/app/views/site/_key.rhtml index 54ec82909..320890078 100644 --- a/app/views/site/_key.rhtml +++ b/app/views/site/_key.rhtml @@ -5,12 +5,21 @@ diff --git a/app/views/site/_sidebar.rhtml b/app/views/site/_sidebar.rhtml index 8cf1ce62c..7addbe177 100644 --- a/app/views/site/_sidebar.rhtml +++ b/app/views/site/_sidebar.rhtml @@ -12,14 +12,17 @@ diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 625f17a10..5ca8b0339 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -96,6 +96,8 @@ marker = addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>))); <% end %> + map.events.register("zoomend", map, updateKey); + map.events.register("moveend", map, updateLocation); updateLocation(); -- 2.43.2