better tag reference modal.

This commit is contained in:
Saman Bemel-Benrud
2012-12-20 19:28:48 -05:00
parent 6fd7d65e8c
commit 780d79e2d5
2 changed files with 13 additions and 12 deletions
-1
View File
@@ -761,7 +761,6 @@ div.typeahead a:first-child {
border-top: 0;
}
/* Modals
------------------------------------------------------- */
+13 -11
View File
@@ -5,27 +5,29 @@ iD.tagReference = function(selection) {
var header = selection.append('div')
.attr('class','modal-section')
.append('h2');
header.append('span').attr('class','icon big icon-pre-text big-inspect');
header.append('span').text(g('title'));
var icon_row = selection.append('div')
.attr('class','modal-section');
var icons = icon_row.selectAll('span.icon')
header.selectAll('span.icon')
.data(g('types'))
.enter()
.append('span')
.attr('title', function(d) {
return 'used with ' + d;
})
.attr('class', function(d) {
return 'icon big icon-pre-text big-' + d;
});
// .attr('class', function(d) {
// // return 'icon icon-pre-text ' + d;
// });
icon_row
header.append('span')
.text(g('title'));
referenceBody = selection.append('div')
.attr('class','modal-section');
referenceBody
.append('h5')
.text('Description')
icon_row
referenceBody
.append('p')
.text(g('description'));
icon_row
referenceBody
.append('a')
.attr('href', function(d) {
return 'http://wiki.openstreetmap.org/wiki/' + d.title;