Attempting to add a tooltip to commit warnings

This commit is contained in:
Aaron Lidman
2013-11-26 11:34:19 -08:00
parent 56d9ac56d2
commit 2703ce5943
3 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -316,7 +316,8 @@
"untagged_area": "Untagged area",
"many_deletions": "You're deleting {n} objects. Are you sure you want to do this? This will delete them from the map that everyone else sees on openstreetmap.org.",
"tag_suggests_area": "The tag {tag} suggests line should be area, but it is not an area",
"deprecated_tags": "Deprecated tags: {tags}"
"deprecated_tags": "Deprecated tags: {tags}",
"untagged_tooltip": "Add tags to describe what type of {geometry} this is."
},
"zoom": {
"in": "Zoom In",
+4
View File
@@ -173,6 +173,10 @@ iD.ui.Commit = function(context) {
.transition()
.style('opacity', 1);
li.call(bootstrap.tooltip()
.title('wtf')
.placement('right'));
function mouseover(d) {
if (d.entity) {
context.surface().selectAll(
+1
View File
@@ -28,6 +28,7 @@ iD.validate = function(changes, graph) {
if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) {
warnings.push({
message: t('validations.untagged_' + geometry),
tooltip: t('validations.untagged_tooltip', {geometry: geometry}),
entity: change
});
}