fix duplications

This commit is contained in:
zmagod 2018-04-06 17:02:10 +02:00
parent 030ce271be
commit 58b6eb908e

View file

@ -102,6 +102,8 @@
********************************* */
function _insertNewListItem(column) {
// remove element if already persent
$('[data-id="' + column.id + '"]').remove();
var html = '<li class="list-group-item" data-id="' + column.id + '" ';
html += 'data-destroy-url="' + column.destroy_html_url + '"';
html += 'data-edit-url="' + column.edit_url + '">';