diff options
-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=""> |