X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6db326aa1f084a062a3b658876bc01bf650f5702..cd4ac6ac2dfaea3f2c7419d8b6d5e0a9490e286a:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 4a310f22b..7c2e4665e 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -17,7 +17,7 @@ //= require richtext //= require querystring -var querystring = require("querystring-component"); +var qs = require("querystring-component"); /* * Called as the user scrolls/zooms around to maniplate hrefs of the @@ -26,8 +26,8 @@ var querystring = require("querystring-component"); window.updateLinks = function (loc, zoom, layers, object) { $(".geolink").each(function (index, link) { var href = link.href.split(/[?#]/)[0], - args = querystring.parse(link.search.substring(1)), - editlink = $(link).hasClass("editlink"); + args = qs.parse(link.search.substring(1)), + editlink = $(link).hasClass("editlink"); delete args.node; delete args.way; @@ -38,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 = {