X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a997690897b765ec763631c31b9e4ca87b4e530f..2f0794738c022f060a07d45f6bed3ea68ea4d166:/app/assets/javascripts/routing.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 2a10a9d5e..204606005 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -248,6 +248,9 @@ OSM.Routing=function(map,name,jqSearch) { script.src = url+r.name+".gotRoute"+num; document.body.appendChild(script); }; + list[num].requestCORS=function(url) { + $.ajax({ url: url, method: "GET", data: {}, dataType: 'json', success: r['gotRoute'+num] }); + }; r['gotRoute'+num]=function(data) { r.awaitingRoute=false; $(".query_wrapper.routing .spinner").hide();