Merge branch 'many_deletions'

This commit is contained in:
Ansis Brammanis
2013-02-27 18:12:52 -05:00
3 changed files with 10 additions and 1 deletions

View File

@@ -108,7 +108,9 @@ iD.ui.Commit = function(context) {
.enter()
.append('li');
warningLi.append('button')
// only show the fix icon when an entity is given
warningLi.filter(function(d) { return d.entity; })
.append('button')
.attr('class', 'minor')
.on('click', event.fix)
.append('span')

View File

@@ -15,6 +15,12 @@ iD.validate = function(changes, graph) {
if (tags.building && tags.building === 'yes') return 'building=yes';
}
if (changes.deleted.length > 100) {
warnings.push({
message: t('validations.many_deletions', { n: changes.deleted.length })
});
}
for (var i = 0; i < changes.created.length; i++) {
change = changes.created[i];

View File

@@ -221,6 +221,7 @@ locale.en = {
untagged_point: "Untagged point which is not part of a line or area",
untagged_line: "Untagged line",
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}"
},