From eb61cc614ff43f32721e844a343f58744cc7ff01 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 12 Feb 2015 05:57:12 -0500 Subject: [PATCH] Update iD container to support iD 1.7.0 --- app/assets/javascripts/id.js | 2 ++ app/views/site/id.html.erb | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index 185717b32..86d2df7e4 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -1 +1,3 @@ //= require iD +//= require presets +//= require imagery diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index 3bb20f29d..075e70b74 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -19,8 +19,11 @@ <% locale = select_locale(ID::LOCALES).to_s %> var id = iD() + .presets(iD.data.presets) + .imagery(iD.data.imagery) + .taginfo(iD.taginfo()) .embed(true) - .assetPath("/iD/") <%# Can't use asset_path('iD/') in production. %> + .assetPath("/iD/") <%# Cant use asset_path('iD/') in production. %> .assetMap(<%= assets("iD").to_json.html_safe %>) .locale("<%= locale %>", "<%= asset_path("iD/locales/#{locale}.json") %>") .preauth({ -- 2.39.5