mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 21:36:44 +08:00
fix duplications
This commit is contained in:
parent
030ce271be
commit
58b6eb908e
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@
|
||||||
********************************* */
|
********************************* */
|
||||||
|
|
||||||
function _insertNewListItem(column) {
|
function _insertNewListItem(column) {
|
||||||
|
// remove element if already persent
|
||||||
|
$('[data-id="' + column.id + '"]').remove();
|
||||||
var html = '<li class="list-group-item" data-id="' + column.id + '" ';
|
var html = '<li class="list-group-item" data-id="' + column.id + '" ';
|
||||||
html += 'data-destroy-url="' + column.destroy_html_url + '"';
|
html += 'data-destroy-url="' + column.destroy_html_url + '"';
|
||||||
html += 'data-edit-url="' + column.edit_url + '">';
|
html += 'data-edit-url="' + column.edit_url + '">';
|
||||||
|
|
Loading…
Add table
Reference in a new issue