]> git.openstreetmap.org Git - rails.git/commitdiff
Add iD walkthrough autostart parameter
authorBryan Housel <bryan@mapbox.com>
Fri, 7 Jul 2017 21:58:02 +0000 (17:58 -0400)
committerBryan Housel <bryan@mapbox.com>
Fri, 7 Jul 2017 21:58:02 +0000 (17:58 -0400)
app/assets/javascripts/edit/id.js.erb

index bedabb1f9e7cfcf7a5beb3c99e5ef70199dd3e22..6b902587ec58bfb619b59ec9eb4613b109955f2e 100644 (file)
@@ -21,6 +21,7 @@ $(document).ready(function () {
     if (hashParams.background) params.background = hashParams.background;
     if (hashParams.comment) params.comment = hashParams.comment;
     if (hashParams.offset) params.offset = hashParams.offset;
+    if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough;
 
     if (id.data("gpx")) {
       params.gpx = id.data("gpx");