X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3f5c3a9d92b8bd68e7ff0a2d68789fda5b623d97..b8da7922ec4194e61a1eebb43be787f8b55d1647:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 449c52038..38c498169 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -245,8 +245,8 @@ $(document).ready(function () { }); function remoteEditHandler(bbox, object) { - var loaded = false, - url, + var remoteEditHost = "http://127.0.0.1:8111", + osmHost = location.protocol + "//" + location.host, query = { left: bbox.getWest() - 0.0001, top: bbox.getNorth() + 0.0001, @@ -254,25 +254,31 @@ $(document).ready(function () { bottom: bbox.getSouth() - 0.0001 }; - url = "http://127.0.0.1:8111/load_and_zoom?"; - - if (object) query.select = object.type + object.id; - - var iframe = $("