X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51..d2dc1ff8978a3ed9636c172a7e3cfb8e3d83410b:/app/assets/javascripts/welcome.js diff --git a/app/assets/javascripts/welcome.js b/app/assets/javascripts/welcome.js index c83d153da..35a1fdc4b 100644 --- a/app/assets/javascripts/welcome.js +++ b/app/assets/javascripts/welcome.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +$(document).ready(function () { var params = OSM.params(); if (params.lat && params.lon) { @@ -15,7 +15,6 @@ $(document).ready(function() { url += OSM.formatHash(params); $(".start-mapping").attr("href", url); - } else { var geoSuccess = function (position) { window.location = "/edit" + OSM.formatHash({ @@ -25,7 +24,7 @@ $(document).ready(function() { }); }; - $(".start-mapping").on("click", function(e) { + $(".start-mapping").on("click", function (e) { e.preventDefault(); $(".start-mapping").addClass("loading");