X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a47c0a4411825f48e447641094678b15df3b2f74..bd7c279604469e0ef22ed8148603befa469d9c2b:/app/assets/javascripts/index/new_note.js diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index 9bcaf2505..9d68ab65c 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -1,4 +1,8 @@ +//= require querystring + OSM.NewNote = function (map) { + var querystring = require("querystring-component"); + var noteLayer = map.noteLayer, content = $("#sidebar_content"), page = {}, @@ -107,7 +111,7 @@ OSM.NewNote = function (map) { map.addLayer(noteLayer); - var params = qs.parse(path.substring(path.indexOf("?") + 1)); + var params = querystring.parse(path.substring(path.indexOf("?") + 1)); var markerLatlng; if (params.lat && params.lon) {