Add zoom to warning selection

This commit is contained in:
Aaron Lidman
2013-10-21 21:31:33 -04:00
parent 2dc46806a5
commit dc98c6fc50

View File

@@ -195,7 +195,10 @@ iD.ui.Commit = function(context) {
}
function warningClick(d) {
if (d.entity) context.enter(iD.modes.Select(context, [d.entity.id]));
if (d.entity) {
context.map().zoomTo(d.entity);
context.enter(iD.modes.Select(context, [d.entity.id]));
}
}
}