diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-24 17:42:12 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-24 17:42:12 +0100 |
commit | d131be23aefd14b85163629ababbf67ac9cdbf18 (patch) | |
tree | a1db281842e6e93f033a5c9eadcc43e8c6a72f6a | |
parent | 66716546083cd94a356e762f91f0836327b9db2a (diff) |
tweaks to make form submission work with jquery mobile
-rw-r--r-- | www/js/map-OpenLayers.js | 2 | ||||
-rw-r--r-- | www/submit-problem.html | 2 |
2 files changed, 3 insertions, 1 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); diff --git a/www/submit-problem.html b/www/submit-problem.html index 2344621..9e22007 100644 --- a/www/submit-problem.html +++ b/www/submit-problem.html @@ -61,7 +61,7 @@ <div class="container" data-role="content" data-enhance="false"> <div class="content" role="main"> - <form action="" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate"> + <form action="" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate" data-ajax="false"> <input type="hidden" name="pc" id="pc" value=""> <input type="hidden" name="latitude" id="fixmystreet.latitude" value=""> |