X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d5a765588f5818bf46575392fa7ccbd4af0de574..0162e945924c15d59dbd77282d6e1f6551ae4280:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 37172f439..6a4fdf6ab 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -64,12 +64,12 @@ function updateLinks(loc, zoom, layers, object) { args = querystring.parse(link.search.substring(1)), editlink = $(link).hasClass("editlink"); - if (object && editlink) { - delete args['node']; - delete args['way']; - delete args['relation']; - delete args['changeset']; + delete args['node']; + delete args['way']; + delete args['relation']; + delete args['changeset']; + if (object && editlink) { args[object.type] = object.id; }