$(document).ready(function () {
    /** letting the cancel avoid html5 validation and redirect back */
    $('.remove-client-validation').click(function () {
        $(this).parent('form').attr('novalidate', 'novalidate');
    });

    /**
     * Trigger deletion of the record from the dynamic DataTables entries.
     */
    $('body').on('click','a[data-type="ajax-delete-record"]', function (e) {
        e.preventDefault();
        var hrefObj = this;

        if (confirm($(this).data('confirm-msg'))) {
            $.ajax({
                url: $(this).attr('href'),
                method: 'DELETE',
                dataType: 'json',
                contentType: 'application/json',
                headers: {
                    'Authorization': 'Bearer ' + api_options.token
                },
                success: function (data) {
                    //traverse upwards on the tree to find table instance and reload it
                    var table = $(hrefObj).closest('.table-datatable, .dataTable').DataTable();
                    table.ajax.reload();

                }
            });
        }
    });

});

@@ -417,24 +417,29 @@
 tDefault();%0A
+    %0A
         var 
@@ -458,61 +458,1229 @@
 is;%0A
-%0A        if (confirm($(this).data('confirm-msg'))) %7B%0A
+        var titlePop = $(this).attr('data-confirm-msg') %7C%7C %22Are you sure you want to delete this record?%22;%0A%0A        if (Swal) %7B%0A            Swal.fire(%7B%0A                title: titlePop,%0A                showCancelButton: true,%0A                confirmButtonText: %60Yes%60,%0A                %7D).then((result) =%3E %7B%0A                /* Read more about isConfirmed, isDenied below */%0A                if (result.isConfirmed) %7B%0A                    $.ajax(%7B%0A                        url: $(this).attr('href'),%0A                        method: 'DELETE',%0A                        dataType: 'json',%0A                        contentType: 'application/json',%0A                        headers: %7B%0A                            'Authorization': 'Bearer ' + api_options.token%0A                        %7D,%0A                        success: function (data) %7B%0A                            //traverse upwards on the tree to find table instance and reload it%0A                            var table = $(hrefObj).closest('.table-datatable, .dataTable').DataTable();%0A                            table.ajax.reload();%0A        %0A                        %7D%0A                    %7D);%0A                %7D%0A            %7D)%0A        %7D else %7B%0A            if (confirm(titlePop)) %7B%0A    
     
@@ -1688,32 +1688,36 @@
        $.ajax(%7B%0A
+    
                 
@@ -1751,32 +1751,36 @@
                 
+    
 method: 'DELETE'
@@ -1773,32 +1773,36 @@
 thod: 'DELETE',%0A
+    
                 
@@ -1827,32 +1827,36 @@
                 
+    
 contentType: 'ap
@@ -1880,32 +1880,36 @@
                 
+    
 headers: %7B%0A     
@@ -1895,32 +1895,36 @@
      headers: %7B%0A
+    
                 
@@ -1982,35 +1982,42 @@
                 
-%7D,%0A
+    %7D,%0A   
                 
@@ -2008,32 +2008,33 @@
                 
+ 
 success: functio
@@ -2036,32 +2036,36 @@
 nction (data) %7B%0A
+    
                 
@@ -2148,32 +2148,36 @@
                 
+    
 var table = $(hr
@@ -2248,32 +2248,36 @@
                 
+ 
+   
 table.ajax.reloa
@@ -2281,17 +2281,24 @@
 load();%0A
-%0A
+    %0A   
         
@@ -2297,34 +2297,39 @@
                 
+ 
 %7D%0A
+    
             %7D);%0A
@@ -2320,32 +2320,46 @@
             %7D);%0A
+            %7D%0A
         %7D%0A    %7D)

Update plugin.js