X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/13289d404188bd397ee72852f66c415a2bb87066..48ad9eff45f04b905faa62058ef91d585096ce89:/app/views/browse/_map.html.erb?ds=sidebyside diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 06cc156ba..6df060d5c 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -134,6 +134,12 @@ return remoteEditHandler(event, extent, "<%= map.class.to_s.downcase + map.id.to_s %>"); }); + <% if preferred_editor == "remote" -%> + $("#object_edit").click(function (event) { + return remoteEditHandler(event, extent, "<%= map.class.to_s.downcase + map.id.to_s %>"); + }); + <% end -%> + $("#object_larger_map").html("<%=j t('browse.map.larger.' + map.class.to_s.downcase) %>"); $("#object_edit").html("<%=j t('browse.map.edit.' + map.class.to_s.downcase) %>"); <% end -%>