aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-11-13 19:39:51 +0000
committerStruan Donald <struan@exo.org.uk>2012-11-13 19:55:49 +0000
commita93a98e4a648367c78868cca91416205a9aaa3e3 (patch)
tree50214bfee0de4fb2bc452a4f41e5461b0656086d /www/js
parent3d123bf421cd5b2b93381cce3d4fb11358b7b2dc (diff)
correct case and remove unused functions
Diffstat (limited to 'www/js')
-rw-r--r--www/js/mobile.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index 4c9d4c4..3b4e5bf 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -116,10 +116,8 @@ function locate() {
if ( valid_postcode( pc ) ) {
jQuery.get( CONFIG.MAPIT_URL + 'postcode/' + pc + '.json', function(data, status) {
if ( status == 'success' ) {
- //activityStop();
show_around( data.wgs84_lat, data.wgs84_lon );
} else {
- activityStop();
alert('Could not locate postcode');
}
});
@@ -700,8 +698,8 @@ $(document).on('pageshow', '#submit-problem', submit_problem_show);
$(document).on('pageshow', '#no-connection-page', check_for_gps);
$(document).bind('pageinit', function() {
- $('#postCodeForm').on('submit', locate);
$('#signInForm').on('submit', sign_in);
+ $('#postcodeForm').on('submit', locate);
});
$(document).on('vclick', '#save_report', save_report);