X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a47c0a4411825f48e447641094678b15df3b2f74..c5fc9f0e7e93088c599ae0d8540ee0117f277d6d:/app/assets/javascripts/osm.js.erb diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 09b3ebd75..391ba64ef 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -1,5 +1,6 @@ //= depend_on settings.yml //= depend_on settings.local.yml +//= require querystring OSM = { <% if defined?(PIWIK) %> @@ -138,14 +139,15 @@ OSM = { }, parseHash: function(hash) { - var args = {}; + var querystring = require("querystring-component"), + args = {}; var i = hash.indexOf('#'); if (i < 0) { return args; } - hash = qs.parse(hash.substr(i + 1)); + hash = querystring.parse(hash.substr(i + 1)); var map = (hash.map || '').split('/'), zoom = parseInt(map[0], 10),