-$(document).ready(function() {
+$(document).ready(function () {
var params = OSM.params();
if (params.lat && params.lon) {
url += OSM.formatHash(params);
$(".start-mapping").attr("href", url);
-
} else {
var geoSuccess = function (position) {
window.location = "/edit" + OSM.formatHash({
});
};
- $(".start-mapping").on("click", function(e) {
+ $(".start-mapping").on("click", function (e) {
e.preventDefault();
$(".start-mapping").addClass("loading");