From d131be23aefd14b85163629ababbf67ac9cdbf18 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 24 Oct 2012 17:42:12 +0100 Subject: tweaks to make form submission work with jquery mobile --- www/js/map-OpenLayers.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/js/map-OpenLayers.js') 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); -- cgit v1.2.3