From fd3a7d3f57a5c8ca04d43366c5673e64db31f322 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 9 May 2018 18:39:29 +0200 Subject: [PATCH] Don't return too early when filling tables with top domains/top ads data. Otherwise, we might miss to remove the loading spinners. This fixes an issue brought up on Discourse. Signed-off-by: DL6ER --- scripts/pi-hole/js/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 390c19b7..34a8de06 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -617,7 +617,6 @@ function updateTopLists() { if(jQuery.isEmptyObject(data.top_queries)) { $("#domain-frequency").parent().remove(); - return; } for (domain in data.top_ads) { @@ -641,7 +640,6 @@ function updateTopLists() { if(jQuery.isEmptyObject(data.top_ads)) { $("#ad-frequency").parent().remove(); - return; } $("#domain-frequency .overlay").hide();