$(document).ready(function () { 'use strict'; $('.repeater').repeater({ defaultValues: { }, show: function () { $(this).slideDown(); }, hide: function (deleteElement) { $(this).slideUp(deleteElement); }, ready: function (setIndexes) { } }); $('.repeater-swal').repeater({ defaultValues: { }, show: function () { $(this).slideDown(); }, hide: function (deleteElement) { Swal.fire({ html: '
Delete Note ?

Deleting a note will permanently remove from your library.

', customClass: { confirmButton: 'btn btn-outline-secondary text-danger', cancelButton: 'btn btn-outline-secondary text-grey', container: 'swal2-has-bg' }, showCancelButton: true, buttonsStyling: false, confirmButtonText: 'YES, DELETE NOTE!', cancelButtonText: 'NO KEEP NOTE!', reverseButtons: true, }).then((result) => { if (result.value) { $(this).slideUp(deleteElement); Swal.fire({ html: '
Your file has been deleted!
', customClass: { content: 'pa-0 text-left', confirmButton: 'btn btn-primary', actions: 'justify-content-start', }, buttonsStyling: false, }) } }) }, ready: function (setIndexes) { } }); });