diff options
-rw-r--r-- | www/css/mobile.css | 4 | ||||
-rw-r--r-- | www/js/views/around.js | 8 | ||||
-rw-r--r-- | www/templates/en/around.html | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/www/css/mobile.css b/www/css/mobile.css index 346f0c7..e686405 100644 --- a/www/css/mobile.css +++ b/www/css/mobile.css @@ -221,3 +221,7 @@ ul#existing { ul#existing li { list-style: none; } + +#sub_map_links a { + padding: 0.6em 2em 0.5em 1em; +} diff --git a/www/js/views/around.js b/www/js/views/around.js index 28bca31..cc4bf4f 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -8,6 +8,7 @@ 'pagehide': 'destroy', 'pageshow': 'afterDisplay', 'click #locate_search': 'goSearch', + 'click #reports': 'goReports', 'click #search': 'goSearch', 'click #relocate': 'centerMapOnPosition', 'click #mark-here': 'onClickReport' @@ -171,6 +172,13 @@ this.navigate( 'search' ); }, + goReports: function(e) { + e.preventDefault(); + this.stopListening(FMS.locator); + FMS.locator.stopTracking(); + this.navigate( 'reports' ); + }, + getCrossHairPosition: function() { var cross = fixmystreet.map.getControlsByClass( "OpenLayers.Control.Crosshairs"); diff --git a/www/templates/en/around.html b/www/templates/en/around.html index e8204ab..56c0bf1 100644 --- a/www/templates/en/around.html +++ b/www/templates/en/around.html @@ -63,6 +63,7 @@ <a id="hide_pins_link" rel="nofollow" href="">Hide pins</a> <a id="relocate" rel="nofollow" href="">Recenter</a> <a id="search" rel="nofollow" href="">Search</a> + <a id="reports" rel="nofollow" href="">R</a> </p> </div> </form> |