Remove top clients table if no data is returned (privacy mode!)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-04-04 14:22:35 +02:00
parent 1055ccf4a3
commit 634fa7f2b3

View File

@@ -488,6 +488,12 @@ function updateTopClientsChart() {
}
// Remove table if there are no results (e.g. privacy mode enabled)
if(jQuery.isEmptyObject(data.top_sources))
{
$("#client-frequency").parent().remove();
}
$("#client-frequency .overlay").hide();
// Update top clients list data every ten seconds
setTimeout(updateTopClientsChart, 10000);