X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/447c05fcb8e306b1be53b4108f816ac8d5663324..8a42bc2eff8563d206615cb8810ad87e9e6e5be2:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d18ece0b1..cbb69119c 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -15,7 +15,7 @@ //= require oauth //= require piwik //= require richtext -//= require querystring +//= require qs/dist/qs //= require bs-custom-file-input //= require bs-custom-file-input-init @@ -25,9 +25,8 @@ */ window.updateLinks = function (loc, zoom, layers, object) { $(".geolink").each(function (index, link) { - var querystring = require("querystring-component"), - href = link.href.split(/[?#]/)[0], - args = querystring.parse(link.search.substring(1)), + var href = link.href.split(/[?#]/)[0], + args = Qs.parse(link.search.substring(1)), editlink = $(link).hasClass("editlink"); delete args.node; @@ -39,7 +38,7 @@ window.updateLinks = function (loc, zoom, layers, object) { args[object.type] = object.id; } - var query = querystring.stringify(args); + var query = Qs.stringify(args); if (query) href += "?" + query; args = {