]> git.openstreetmap.org Git - rails.git/commitdiff
Add passthrough of new `locale`, `maprules`, and `presets` URL hash parameters to iD
authorQuincy Morgan <quincy.morgan@icloud.com>
Wed, 23 Jan 2019 17:13:27 +0000 (12:13 -0500)
committerQuincy Morgan <quincy.morgan@icloud.com>
Wed, 23 Jan 2019 17:13:27 +0000 (12:13 -0500)
app/assets/javascripts/edit/id.js.erb

index a85fcef457f98271606c692985d1227ad191a7bc..2ce8974f5d0decd3d55bbfe5fb74bd270d184517 100644 (file)
@@ -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.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");
 
     if (id.data("gpx")) {
       params.gpx = id.data("gpx");