diff options
author | Struan Donald <struan@exo.org.uk> | 2012-06-01 17:07:36 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-06-01 17:07:36 +0100 |
commit | 2a5ede532fe53c1ca58cf06718b608d5658085e1 (patch) | |
tree | e069f24a680c7dd28831d896e7d8d903670fa0f5 /www/js | |
parent | e9589672314ee3499d14525f10bfdf58c3a6c615 (diff) |
whitespace and layout tidy up
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/fixmystreet.js | 6 | ||||
-rw-r--r-- | www/js/mobile.js | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/www/js/fixmystreet.js b/www/js/fixmystreet.js index af4ec2e..ce79214 100644 --- a/www/js/fixmystreet.js +++ b/www/js/fixmystreet.js @@ -310,10 +310,10 @@ $(function(){ //make initial tab active $('.tab-nav a').first().addClass('active'); $('.tab').first().addClass('open'); - + //hide other tabs $('.tab').not('.open').hide(); - + //set up click event $(".tab-nav").on('click', 'a', function(e){ e.preventDefault(); @@ -422,7 +422,7 @@ $.fn.drawer = function(id, ajax) { $('.spinner').remove(); }); } - + // Tall drawer - put after .content for scrolling to work okay. // position over the top of the main .content in precisely the right location d.insertAfter($content).addClass('content').css({ diff --git a/www/js/mobile.js b/www/js/mobile.js index adf5e86..e4393ab 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -42,7 +42,7 @@ function location_error( msg ) { $('#location_error').remove(); return; } - + alert(msg); if ( !$('#location_error') ) { @@ -109,10 +109,9 @@ function lookup_string(q) { } function locate() { - //location_error(''); $("#multiple").remove(); var pc = $('#pc').val(); - + if (!pc) { location_error( "Please enter your location" ); return false; @@ -183,7 +182,7 @@ function takePhotoFail(message) { function takePhoto(type) { navigator.camera.getPicture(takePhotoSuccess, takePhotoFail, { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: type }); } - + function check_name( name, msg ) { $('#email_label').hide(); $('#form_email').hide(); @@ -237,7 +236,7 @@ var submit_clicked = null; function postReport(e) { e.preventDefault(); - + // the .stopImmediatePropogation call in invalidHandler should render this // redundant but it doesn't seem to work so belt and braces :( if ( !$('#mapForm').valid() ) { return; } |