fix duplicate tags for a map in ui

This commit is contained in:
Claudio Barril 2014-02-01 04:10:00 -03:00
parent 4200d85cc0
commit cf246f00c8

View File

@ -50,14 +50,17 @@ $(function () {
//tag selected mindmaps...
var rows = $('#mindmapListTable').dataTableExt.getSelectedRows();
for (var i = 0; i < rows.length; i++) {
var labelName = $(':selected', labelList).text();
if ($(rows[i]).find('\'.labelTag:contains("' + labelName + '")\'').length == 0) {
$(rows[i]).find('.mindmapName').append(
labelTagsAsHtml([{
title: $(':selected', labelList).text(),
title: labelName,
color: $(':selected', labelList).attr('color')
}])
)
}
}
}
});
}
});