window.addEventListener('note-updated', event => { $('#add_edit_note').modal('hide'); Swal.fire({ icon: 'success', title: "