diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 9240d709..a7f62cb7 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -76,16 +76,11 @@ function handleAjaxError( xhr, textStatus, error ) { else { alert( "An error occured while loading the data. Presumably your log is too large to be processed." ); } - tableApi.fnProcessingIndicator( false ); + $("#all-queries_processing").hide(); + tableApi.clear() + tableApi.draw(); } -jQuery.fn.dataTableExt.oApi.fnProcessingIndicator = function ( oSettings, onoff ) { - if ( typeof( onoff ) == "undefined" ) { - onoff = true; - } - this.oApi._fnProcessingDisplay( oSettings, onoff ); -}; - $(document).ready(function() { // Do we want to filter queries?