aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authormatthew <matthew>2006-10-07 17:55:10 +0000
committermatthew <matthew>2006-10-07 17:55:10 +0000
commitc3d00850232f9ee73c73e34e9ea671deaeba1b9e (patch)
tree47d17f5aa9f0160c068d75af6f79e8ceb5100625 /web/index.cgi
parent1d3fa96c53089a9206293d1d7cc63bb090366bb3 (diff)
Don't reload tiles if it's what we already have.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 972a46dd0..72cb42a4c 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.38 2006-10-06 16:15:38 matthew Exp $
+# $Id: index.cgi,v 1.39 2006-10-07 17:55:10 matthew Exp $
# TODO
# Nothing is done about the update checkboxes - not stored anywhere on anything!
@@ -552,9 +552,11 @@ EOF
} else {
$img_type = '<img';
}
+ my $imgw = '254px';
+ my $imgh = '254px';
$out .= <<EOF;
<div id="map"><div id="drag">
- $img_type id="t2.2" name="tile_$tl" src="$tl_src" style="top:0px; left:0px;">$img_type id="t2.3" name="tile_$tr" src="$tr_src" style="top:0px; left:254px;"><br>$img_type id="t3.2" name="tile_$bl" src="$bl_src" style="top:254px; left:0px;">$img_type id="t3.3" name="tile_$br" src="$br_src" style="top:254px; left:254px;">
+ $img_type id="t2.2" name="tile_$tl" src="$tl_src" style="top:0px; left:0px;">$img_type id="t2.3" name="tile_$tr" src="$tr_src" style="top:0px; left:$imgw;"><br>$img_type id="t3.2" name="tile_$bl" src="$bl_src" style="top:$imgh; left:0px;">$img_type id="t3.3" name="tile_$br" src="$br_src" style="top:$imgh; left:$imgw;">
$pins
</div></div>
EOF