diff options
Diffstat (limited to 'web')
-rwxr-xr-x | web/index.cgi | 4 | ||||
-rw-r--r-- | web/js.js | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/web/index.cgi b/web/index.cgi index 8afbdb684..9ed2664fe 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.302 2009-10-21 15:11:38 louise Exp $ +# $Id: index.cgi,v 1.303 2009-10-22 15:10:51 matthew Exp $ use strict; use Standard; @@ -69,7 +69,7 @@ sub main { my $out = ''; my %params; - if ($q->param('submit_problem') || ($q->param('submit_map') && $q->param('submit_map')==2)) { + if ($q->param('submit_problem')) { $params{title} = _('Submitting your report'); ($out) = submit_problem($q); } elsif ($q->param('submit_update')) { @@ -54,10 +54,9 @@ YAHOO.util.Event.onContentReady('map', function() { YAHOO.util.Event.onContentReady('mapForm', function() { this.onsubmit = function() { if (this.submit_problem) { - this.submit_problem.disabled = true; - this.submit_map.value = 2; + this.onsubmit = function() { return false; }; } - + this.x.value = fms_x + 2; this.y.value = fms_y + 2; /* |