diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js index bdf6a6d62..f948f1754 100755 --- a/assets/src/js/functions/datatables.js +++ b/assets/src/js/functions/datatables.js @@ -66,12 +66,12 @@ function start_datatables( $elements ) { }); }); - $this.on('preInit.dt', function (ev, settings) { - $('#mini-loader').show(); - }); - - const table = $this.DataTable({ - language: globals.translations.datatables, + $this.DataTable({ + language: Object.assign({}, globals.translations.datatables, { + // Use the DataTables built-in processing slot with a FontAwesome + // spinner instead of the corner loader. + processing: '', + }), autoWidth: true, dom: "ti", serverSide: true, @@ -117,14 +117,6 @@ function start_datatables( $elements ) { drawCallback: drawCallback, footerCallback: footerCallback, }); - - table.on('processing.dt', function (e, settings, processing) { - if (processing) { - $('#mini-loader').show(); - } else { - $('#mini-loader').hide(); - } - }); } }); }