X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/68a3df4d53c84508bf443058040379c3a18eb1a7..6d9d688080ebcf166addb868b8fceeee55c3e700:/app/assets/javascripts/welcome.js?ds=inline diff --git a/app/assets/javascripts/welcome.js b/app/assets/javascripts/welcome.js index aa28e99e9..5ba0d7cd2 100644 --- a/app/assets/javascripts/welcome.js +++ b/app/assets/javascripts/welcome.js @@ -17,13 +17,13 @@ $(document).ready(function() { $('.start-mapping').attr('href', url); } else { - function geoSuccess(position) { + var geoSuccess = function (position) { window.location = '/edit' + OSM.formatHash({ zoom: 17, lat: position.coords.latitude, lon: position.coords.longitude }); - } + }; $('.start-mapping').on('click', function(e) { e.preventDefault();