X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/019746068992d03c1bbf4f46282a552552ea9e0c..20a861392e1ee7970da5d95b546aa8551faaf27b:/app/views/site/edit.html.erb?ds=sidebyside diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index d3258c9cf..51389afc1 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -12,7 +12,7 @@ <% else %> <% content_for :greeting do %> <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %> -<%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)", { :title => t('layouts.home_tooltip') } %> | +<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> | <% end %> <% end %> @@ -65,7 +65,7 @@ zoom='14' if zoom.nil? window.onbeforeunload=function() { if (!changesaved) { - return '#{escape_javascript(t('site.edit.potlatch_unsaved_changes'))}'; + return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>'; } }