diff options
| author | Struan Donald <struan@exo.org.uk> | 2013-06-24 15:31:43 +0100 |
|---|---|---|
| committer | Struan Donald <struan@exo.org.uk> | 2013-06-24 18:23:46 +0100 |
| commit | a72209c2ec487a8ad8659184e9f7741d736a56a2 (patch) | |
| tree | 0a57b8cbe3a2fd45fc2a805f103b7b8057dd2db4 /www/js | |
| parent | 4669097e4719831e1e1e11b6d56284bd26e1cf68 (diff) | |
put back the confirm location button on the map as well as the next button
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/views/around.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js index ecfe932..ad5533c 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -15,6 +15,7 @@ 'vclick #relocate': 'centerMapOnPosition', 'vclick #cancel': 'onClickCancel', 'vclick #confirm': 'onClickReport', + 'vclick #confirm-map': 'onClickReport', 'vclick #mark-here': 'onClickMark', 'vclick #reposition': 'onClickReposition', 'vclick a.address': 'goAddress', @@ -132,6 +133,7 @@ if ( this.model.get('lat') ) { $('#cancel').addClass('ui-btn-left').show(); $('#confirm').addClass('ui-btn-right ui-btn-icon-right').show(); + $('#confirm-map').show(); $('#view-my-reports').hide(); $('#login-options').hide(); $('#mark-here').hide(); @@ -141,6 +143,7 @@ } else { $('#cancel').hide().removeClass('ui-btn-left'); $('#confirm').hide().removeClass('ui-btn-right ui-btn-icon-right'); + $('#confirm-map').hide(); $('#view-my-reports').show(); $('#login-options').show(); $('#mark-here').show(); @@ -154,6 +157,7 @@ e.preventDefault(); $('#cancel').addClass('ui-btn-left').show(); $('#confirm').addClass('ui-btn-right ui-btn-icon-right').show(); + $('#confirm-map').show(); $('#view-my-reports').hide(); $('#login-options').hide(); $('#mark-here').hide(); @@ -170,6 +174,7 @@ e.preventDefault(); $('#cancel').hide().removeClass('ui-btn-left'); $('#confirm').hide().removeClass('ui-btn-right ui-btn-icon-right'); + $('#confirm-map').hide(); $('#reposition').hide(); $('#view-my-reports').show(); $('#login-options').show(); |
