From 3c761b4b50ba91d09c8a3b27e221a07a8963d5ac Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 6 Jan 2017 18:15:08 +0100 Subject: [PATCH] Clear processing label + remove table content --- scripts/pi-hole/js/queries.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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?