aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-10-24 17:42:12 +0100
committerStruan Donald <struan@exo.org.uk>2012-10-24 17:42:12 +0100
commitd131be23aefd14b85163629ababbf67ac9cdbf18 (patch)
treea1db281842e6e93f033a5c9eadcc43e8c6a72f6a /www/js
parent66716546083cd94a356e762f91f0836327b9db2a (diff)
tweaks to make form submission work with jquery mobile
Diffstat (limited to 'www/js')
-rw-r--r--www/js/map-OpenLayers.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index f6117ab..8f62e76 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -239,6 +239,8 @@ function ensureNonZeroHeight(containerid) {
}
$(document).delegate('#submit-problem', 'pageshow', function(event) {
+ $('#mapForm').submit(postReport);
+ $('#mapForm :input[type=submit]').on('click', function() { submit_clicked = $(this); });
$('#side-form, #site-logo').show();
$('#pc').val(localStorage.pc);
$('#fixmystreet\\.latitude').val(localStorage.latitude);