X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/38e152d784fe0577b07d6f542b44a8d1f5c84371..42ef10ba80bf7ff13b4f9210e5fbf54538e0d52f:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 9d883daf9..7b1d874e7 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -270,7 +270,7 @@ end resizeMap(); } - function josmEditHandler(event) { + function remoteEditHandler(event) { var extent = getMapExtent(); var loaded = false; @@ -278,20 +278,20 @@ end $("linkloader").src = "http://127.0.0.1:8111/load_and_zoom?left=" + extent.left + "&top=" + extent.top + "&right=" + extent.right + "&bottom=" + extent.bottom; setTimeout(function () { - if (!loaded) alert("<%= t('site.index.josm_failed') %>"); + if (!loaded) alert("<%= t('site.index.remote_failed') %>"); }, 1000); event.stop(); } function installEditHandler() { - $("josmanchor").observe("click", josmEditHandler); + $("remoteanchor").observe("click", remoteEditHandler); - <% if preferred_editor == "josm" %> - $("editanchor").observe("click", josmEditHandler); + <% if preferred_editor == "remote" %> + $("editanchor").observe("click", remoteEditHandler); <% if params[:action] == "edit" %> - josmEditHandler(); + remoteEditHandler(); <% end %> <% end %> }