fix duplicate tags for a map in ui
parent
4200d85cc0
commit
cf246f00c8
|
@ -50,12 +50,15 @@ $(function () {
|
||||||
//tag selected mindmaps...
|
//tag selected mindmaps...
|
||||||
var rows = $('#mindmapListTable').dataTableExt.getSelectedRows();
|
var rows = $('#mindmapListTable').dataTableExt.getSelectedRows();
|
||||||
for (var i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
$(rows[i]).find('.mindmapName').append(
|
var labelName = $(':selected', labelList).text();
|
||||||
labelTagsAsHtml([{
|
if ($(rows[i]).find('\'.labelTag:contains("' + labelName + '")\'').length == 0) {
|
||||||
title: $(':selected', labelList).text(),
|
$(rows[i]).find('.mindmapName').append(
|
||||||
color: $(':selected', labelList).attr('color')
|
labelTagsAsHtml([{
|
||||||
}])
|
title: labelName,
|
||||||
)
|
color: $(':selected', labelList).attr('color')
|
||||||
|
}])
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue