1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- $(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:
- '<div class="mb-10"><i class="ri-delete-bin-6-line font-29 text-danger"></i></div><h5 class="text-danger">Delete Note ?</h5><p>Deleting a note will permanently remove from your library.</p>',
- 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:
- '<div class="d-flex align-items-center"><i class="ri-delete-bin-5-fill mr-15 font-24 text-danger"></i><h5 class="text-danger mb-0">Your file has been deleted!</h5></div>',
- customClass: {
- content: 'pa-0 text-left',
- confirmButton: 'btn btn-primary',
- actions: 'justify-content-start',
- },
- buttonsStyling: false,
- })
- }
- })
- },
- ready: function (setIndexes) { }
- });
- });
|