Make the tooltips for the tabs a bit more consistent and make the edit

and history tooltips change when those tabs are disabled to explain that
the user needs to zoom in to use them.
This commit is contained in:
Tom Hughes 2010-02-26 18:49:22 +00:00
parent 3851a672e2
commit c6077fd124
3 changed files with 13 additions and 7 deletions

View file

@ -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';
}
}