Fix rendition of #300, needs design push

This commit is contained in:
Tom MacWright
2012-12-17 17:13:14 -05:00
parent c0921ac44a
commit 96cdde5d1a
+6 -2
View File
@@ -10,8 +10,12 @@ iD.Inspector = function() {
function emitChangeDirection(d) { event.changeWayDirection(iD.Entity(d)); }
function emitSplitWay(d) { event.splitWay(iD.Entity(d)); }
selection.html('');
selection.append('h2')
.text(iD.util.friendlyName(selection.datum()));
var h2 = selection.append('h2');
h2.append('span').attr('class', function(d) {
var icons = { way: 'line', node: 'point' };
return 'icon add-' + icons[d.type];
});
h2.append('span').text(iD.util.friendlyName(selection.datum()));
selection.append('a')
.attr('class', 'permalink')
.attr('href', osmLink)