Skip to content

A live bird collage card for your Home Assistant dashboard.

Update todays_detections.php

ehpersonal38bf46a174fc02
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 0eaaf3f5..35216a7c 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -247,7 +247,7 @@ document.getElementById("searchterm").onkeydown = (function(e) {
});
function switchViews(element) {
- document.getElementById("detections_table").innerHTML = "";
+ document.getElementById("detections_table").innerHTML = "<h3>Loading <?php echo $todaycount['COUNT(*)']; ?> detections...</h3>";
if(element.innerHTML == "Legacy view") {
element.innerHTML = "Normal view";
loadDetections(undefined);