X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7b384f03ab1d34fd3ebcc5ae3add25b3b5591e2e..c22958faed2e60b7277607fdee6f94976b9caf39:/public/javascripts/site.js diff --git a/public/javascripts/site.js b/public/javascripts/site.js index 43cca261c..c17500f57 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -60,9 +60,11 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj args[objtype] = objid; } node.href = setArgs("/edit", args); + node.title = i18n("javascripts.site.edit_tooltip"); node.style.fontStyle = 'normal'; } else { node.href = 'javascript:alert(i18n("javascripts.site.edit_zoom_alert"));'; + node.title = i18n("javascripts.site.edit_disabled_tooltip"); node.style.fontStyle = 'italic'; } } @@ -85,9 +87,11 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj } node.href = setArgs("/history", args); + node.title = i18n("javascripts.site.history_tooltip"); node.style.fontStyle = 'normal'; } else { node.href = 'javascript:alert(i18n("javascripts.site.history_zoom_alert"));'; + node.title = i18n("javascripts.site.history_disabled_tooltip"); node.style.fontStyle = 'italic'; } }