From: Quincy Morgan Date: Wed, 23 Jan 2019 17:13:27 +0000 (-0500) Subject: Add passthrough of new `locale`, `maprules`, and `presets` URL hash parameters to iD X-Git-Tag: live~3313^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3f2a42bf77813a2745ed647e47219e1a2b757fd5?ds=sidebyside Add passthrough of new `locale`, `maprules`, and `presets` URL hash parameters to iD --- diff --git a/app/assets/javascripts/edit/id.js.erb b/app/assets/javascripts/edit/id.js.erb index a85fcef45..2ce8974f5 100644 --- a/app/assets/javascripts/edit/id.js.erb +++ b/app/assets/javascripts/edit/id.js.erb @@ -25,6 +25,9 @@ $(document).ready(function () { 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");