diff options
author | matthew <matthew> | 2008-09-10 12:04:12 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-09-10 12:04:12 +0000 |
commit | 2d6ce634157186ab37a2af590c02f97e6923df33 (patch) | |
tree | 08c17078c7a28d9299a085226aa0f6db952b2ee1 | |
parent | c25c0ded011d6e869cac5f9bf11626e4a2d1832d (diff) |
Display all pins, but only have 9 in list (perhaps add pagination).
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 2359b9ac2..5dd2e41a0 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.204 2008-07-31 10:49:03 matthew Exp $ +# $Id: index.cgi,v 1.205 2008-09-10 12:04:12 matthew Exp $ use strict; use Standard; @@ -898,6 +898,8 @@ sub map_pins { my $py = Page::os_to_px($_->{northing}, $y, 1); $pins .= Page::display_pin($q, $px, $py, 'red', $count_prob++); } + } else { + @$current_map = @$current_map[0..8]; } my $fixed = Problems::fixed_nearby($dist, $mid_e, $mid_n); foreach (@$fixed) { |