X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d102c9aaf478a4bad52a72b1b72470ba35ba464e..4cf3c3b6ed7cc6ab0728b320afde5854489629fb:/app/assets/javascripts/osm.js.erb?ds=inline diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 31bb23c4b..391ba64ef 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -1,4 +1,6 @@ -//= depend_on application.yml +//= depend_on settings.yml +//= depend_on settings.local.yml +//= require querystring OSM = { <% if defined?(PIWIK) %> @@ -9,7 +11,7 @@ OSM = { SERVER_PROTOCOL: <%= Settings.server_protocol.to_json %>, SERVER_URL: <%= Settings.server_url.to_json %>, API_VERSION: <%= Settings.api_version.to_json %>, - STATUS: <%= STATUS.to_json %>, + STATUS: <%= Settings.status.to_json %>, MAX_NOTE_REQUEST_AREA: <%= Settings.max_note_request_area.to_json %>, OVERPASS_URL: <%= Settings.overpass_url.to_json %>, NOMINATIM_URL: <%= Settings.nominatim_url.to_json %>, @@ -137,7 +139,8 @@ OSM = { }, parseHash: function(hash) { - var args = {}; + var querystring = require("querystring-component"), + args = {}; var i = hash.indexOf('#'); if (i < 0) {