mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
fix duplications
This commit is contained in:
parent
030ce271be
commit
58b6eb908e
|
@ -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 + '">';
|
||||
|
|
Loading…
Reference in a new issue