mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 23:44:54 +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...
|
//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
Block a user