mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fix duplicate tags for a map in ui
This commit is contained in:
parent
4200d85cc0
commit
cf246f00c8
@ -50,14 +50,17 @@ $(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++) {
|
||||||
|
var labelName = $(':selected', labelList).text();
|
||||||
|
if ($(rows[i]).find('\'.labelTag:contains("' + labelName + '")\'').length == 0) {
|
||||||
$(rows[i]).find('.mindmapName').append(
|
$(rows[i]).find('.mindmapName').append(
|
||||||
labelTagsAsHtml([{
|
labelTagsAsHtml([{
|
||||||
title: $(':selected', labelList).text(),
|
title: labelName,
|
||||||
color: $(':selected', labelList).attr('color')
|
color: $(':selected', labelList).attr('color')
|
||||||
}])
|
}])
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user