Show tag editor for untagged entities that aren't new

Fixes #991.
This commit is contained in:
John Firebaugh
2013-03-14 15:59:40 -07:00
parent 4d830455e0
commit 66e1bdb47d
2 changed files with 5 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ iD.Entity.prototype = {
return iD.Entity.id.toOSM(this.id);
},
isNew: function() {
return this.osmId() < 0;
},
update: function(attrs) {
return iD.Entity(this, attrs);
},

View File

@@ -4,7 +4,7 @@ iD.modes.Select = function(context, selection, initial) {
button: 'browse'
};
var showgrid = singular() && !_.without(Object.keys(singular().tags), 'area').length;
var showgrid = singular() && singular().isNew() && _.without(Object.keys(singular().tags), 'area').length === 0;
var inspector = iD.ui.Inspector(context).initial(showgrid),
keybinding = d3.keybinding('select'),