aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authormatthew <matthew>2006-09-28 11:10:57 +0000
committermatthew <matthew>2006-09-28 11:10:57 +0000
commit4a7c2e625003b958871338d729623a626eb1a07f (patch)
treea3fcabdc457c9a7d92f4e4ae0d7f0597adce7947 /web/index.cgi
parent9475220c2f73e604e77e18c9e5f268ed78560a35 (diff)
Form state is remembered when clicking the Back button. So can't rely on
that for drawing the correct bit of the map...
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index c918d0843..ec831e128 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.32 2006-09-28 11:06:43 matthew Exp $
+# $Id: index.cgi,v 1.33 2006-09-28 11:10:57 matthew Exp $
# TODO
# Nothing is done about the update checkboxes - not stored anywhere on anything!
@@ -534,6 +534,9 @@ sub display_map {
if ($type) {
my $pc_enc = ent($q->param('pc'));
$out .= <<EOF;
+<script type="text/javascript">
+x = $x - 2; y = $y - 2;
+</script>
<form action="./" method="get" id="mapForm">
<input type="hidden" name="map" value="1">
<input type="hidden" name="x" value="$x">