mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
fix duplicate tags for a map in ui
This commit is contained in:
parent
4200d85cc0
commit
cf246f00c8
@ -50,12 +50,15 @@ $(function () {
|
||||
//tag selected mindmaps...
|
||||
var rows = $('#mindmapListTable').dataTableExt.getSelectedRows();
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
$(rows[i]).find('.mindmapName').append(
|
||||
labelTagsAsHtml([{
|
||||
title: $(':selected', labelList).text(),
|
||||
color: $(':selected', labelList).attr('color')
|
||||
}])
|
||||
)
|
||||
var labelName = $(':selected', labelList).text();
|
||||
if ($(rows[i]).find('\'.labelTag:contains("' + labelName + '")\'').length == 0) {
|
||||
$(rows[i]).find('.mindmapName').append(
|
||||
labelTagsAsHtml([{
|
||||
title: labelName,
|
||||
color: $(':selected', labelList).attr('color')
|
||||
}])
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user