mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 00:29:50 +02:00
Attempting to add a tooltip to commit warnings
This commit is contained in:
Vendored
+2
-1
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user