From: John Firebaugh <john.firebaugh@gmail.com>
Date: Mon, 6 Oct 2014 21:47:36 +0000 (-0700)
Subject: Forward the `comment` hash parameter to iD
X-Git-Tag: live~5688^2~1
X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/963827d396959b856363417cc74749e79925c892

Forward the `comment` hash parameter to iD

See https://github.com/openstreetmap/iD/commit/21da76cf8060832e36d341d9bd41dd1142810b08
---

diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb
index db611f428..7ddee6218 100644
--- a/app/views/site/_id.html.erb
+++ b/app/views/site/_id.html.erb
@@ -26,6 +26,10 @@
       params.background = hashParams.background;
     }
 
+    if (hashParams.comment) {
+      params.comment = hashParams.comment;
+    }
+
 <% if params[:gpx] -%>
     params.gpx = '<%= trace_data_url(params[:gpx]) %>';
 <% else -%>