diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 8efcfa2..42848f6 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -835,13 +835,13 @@ function resetFrasi(){ }) function createNoteGroup(cantica, canto, versi, id) { - var noteGroupCard = $('
'); + var noteGroupCard = $('
'); noteGroupCard.append('
' + cantica + ", Canto " + canto + versi + "
"); return noteGroupCard; } function createNoteEntry(comments,id,pos) { - var noteCard = $('
'); + var noteCard = $('
'); //var noteCard = $('
'); //var collapseCardBody = $('
'); var collapseCardBody = $('
'); diff --git a/js/script_4.4.js b/js/script_4.4.js index 810c0d8..da12f58 100644 --- a/js/script_4.4.js +++ b/js/script_4.4.js @@ -431,7 +431,11 @@ $(document).ready(function() { // Evento: click sull'icona rimuovi nota $('#displaynote').on('click', '.closeNote', function() { var noteListItemId = $(this).closest('.card'); - $(noteListItemId).remove(); + if ($(noteListItemId).siblings(".card-body").length == 0) { + $(noteListItemId).parent().remove() + } else { + $(noteListItemId).remove(); + } if ($('#displaynote .card').length == 0) { $('#displaynote').append($(emptyNoteList)) };