X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/87918595da1e1fad2ddd7aa62f9fc537dff657ff..62dff6ab7ff94c38b19208dd1423ad0be5cb9dcf:/app/assets/javascripts/edit/id.js.erb diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index 834eeb75b..2ce8974f5 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -2,9 +2,9 @@ $(document).ready(function () { var id = $("#id-embed"); if (id.data("key")) { - var hashParams = OSM.params(location.hash.substring(1)), - mapParams = OSM.mapParams(), - params = {}; + var hashParams = OSM.params(location.hash.substring(1)); + var mapParams = OSM.mapParams(); + var params = {}; if (mapParams.object) { params.id = mapParams.object.type[0] + mapParams.object.id; @@ -21,8 +21,13 @@ $(document).ready(function () { if (hashParams.background) params.background = hashParams.background; if (hashParams.comment) params.comment = hashParams.comment; if (hashParams.hashtags) params.hashtags = hashParams.hashtags; + if (hashParams.source) params.source = hashParams.source; + if (hashParams.disable_features) params.disable_features = hashParams.disable_features; if (hashParams.offset) params.offset = hashParams.offset; if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough; + if (hashParams.locale) params.locale = hashParams.locale; + if (hashParams.maprules) params.maprules = hashParams.maprules; + if (hashParams.presets) params.presets = hashParams.presets; if (id.data("gpx")) { params.gpx = id.data("gpx");