tag label with x to delete tag from mindmap

This commit is contained in:
Ezequiel Bergamaschi 2014-02-01 23:33:13 -03:00 committed by Ezequiel Bergamaschi
parent 9a19e2a5eb
commit a4aa1c5436

View File

@ -16,7 +16,21 @@ function labelTagsAsHtml(labels) {
var result = "";
for (var i = 0; i<labels.length; i++) {
var label = labels[i];
result+= "<div class='labelTag' style='background-color:" + label.color + "'>"+ label.title + "</div>"
//FIXME: remover el hack del black cuando se fixee el modal dialog
var labelColor = label.color || "black";
result +=
"<table class='tableTag'>" +
"<tbody><tr>" +
"<td style='cursor: default; background-color:"+ labelColor +"'>" +
"<div style='font-size: 11px'>" +
label.title +
'</div>' +
"</td>" +
"<td style='cursor: pointer;background-color:"+ labelColor +"'>" +
"<span style='font-size: 12px' title='remove'>x</span>"+
"</td>" +
"</tr></tbody>" +
"</table>"
}
return result;
}