Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repeater-init.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $(document).ready(function () {
  2. 'use strict';
  3. $('.repeater').repeater({
  4. defaultValues: {
  5. },
  6. show: function () {
  7. $(this).slideDown();
  8. },
  9. hide: function (deleteElement) {
  10. $(this).slideUp(deleteElement);
  11. },
  12. ready: function (setIndexes) { }
  13. });
  14. $('.repeater-swal').repeater({
  15. defaultValues: {
  16. },
  17. show: function () {
  18. $(this).slideDown();
  19. },
  20. hide: function (deleteElement) {
  21. Swal.fire({
  22. html:
  23. '<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>',
  24. customClass: {
  25. confirmButton: 'btn btn-outline-secondary text-danger',
  26. cancelButton: 'btn btn-outline-secondary text-grey',
  27. container: 'swal2-has-bg'
  28. },
  29. showCancelButton: true,
  30. buttonsStyling: false,
  31. confirmButtonText: 'YES, DELETE NOTE!',
  32. cancelButtonText: 'NO KEEP NOTE!',
  33. reverseButtons: true,
  34. }).then((result) => {
  35. if (result.value) {
  36. $(this).slideUp(deleteElement);
  37. Swal.fire({
  38. html:
  39. '<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>',
  40. customClass: {
  41. content: 'pa-0 text-left',
  42. confirmButton: 'btn btn-primary',
  43. actions: 'justify-content-start',
  44. },
  45. buttonsStyling: false,
  46. })
  47. }
  48. })
  49. },
  50. ready: function (setIndexes) { }
  51. });
  52. });