mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
indicate number of additional tags
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user