X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62a1ec47483803a32c038fb2907afdf45a61b5ee..db66d47e42bc267670ef00b3b2611b4b53cb40e9:/app/views/site/edit.rhtml?ds=sidebyside diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 9c3c78fda..a3896bc48 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -65,9 +65,9 @@ fo.addVariable('token','<%= session[:token] %>'); if (lat) { fo.addVariable('lat',lat); } if (lon) { fo.addVariable('long',lon); } - <% if params['gpx'] %>fo.addVariable('gpx' ,'<%= h(params['gpx'] ) %>');<% end %> - <% if params['way'] %>fo.addVariable('way' ,'<%= h(params['way'] ) %>');<% end %> - <% if params['node'] %>fo.addVariable('node','<%= h(params['node']) %>');<% end %> + <% if params['gpx'] %> + fo.addVariable('gpx','<%= h(params['gpx']) %>'); + <% end %> fo.write("map"); }