indicate number of additional tags

This commit is contained in:
Ansis Brammanis
2013-02-25 16:55:45 -05:00
parent 7579f5b473
commit 12091c9ae7
+4 -1
View File
@@ -2,12 +2,13 @@ iD.ui.Taglist = function() {
var event = d3.dispatch('change'),
taginfo = iD.taginfo(),
initial = false,
collapsebutton,
list,
context;
function taglist(selection) {
var collapsebutton = selection.append('a')
collapsebutton = selection.append('a')
.attr('href','#')
.attr('class','hide-toggle')
.text('Additional tags')
@@ -42,6 +43,8 @@ iD.ui.Taglist = function() {
function drawTags(tags) {
var entity = list.datum();
collapsebutton.text('Additional tags (' + Object.keys(tags).length + ')');
tags = d3.entries(tags);
if (!tags.length) {