From 780d79e2d5f680af9a5a24eeff597eafaf536a27 Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Thu, 20 Dec 2012 19:28:48 -0500 Subject: [PATCH] better tag reference modal. --- css/app.css | 1 - js/id/ui/tag_reference.js | 24 +++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/css/app.css b/css/app.css index 417264ec2..7b0de2376 100644 --- a/css/app.css +++ b/css/app.css @@ -761,7 +761,6 @@ div.typeahead a:first-child { border-top: 0; } - /* Modals ------------------------------------------------------- */ diff --git a/js/id/ui/tag_reference.js b/js/id/ui/tag_reference.js index be76b0373..945f03b7b 100644 --- a/js/id/ui/tag_reference.js +++ b/js/id/ui/tag_reference.js @@ -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;