diff --git a/index.html b/index.html
index f7345ca..8fdc588 100644
--- a/index.html
+++ b/index.html
@@ -63,12 +63,12 @@
Recovery reports can be added on the Chase-Car pane.
diff --git a/js/tracker.js b/js/tracker.js
index daccab9..8d81bba 100644
--- a/js/tracker.js
+++ b/js/tracker.js
@@ -3295,6 +3295,8 @@ function refreshRecoveries() {
}
},
error: function() {
+ updateRecoveryPane([]);
+ updateLeaderboardPane([]);
},
complete: function(request, textStatus) {
periodical_recoveries = setTimeout(refreshRecoveries, 600 * 1000);
@@ -3706,6 +3708,10 @@ function updateRecoveryPane(r){
}
}
+ if (html == "") {
+ html = "
No recent recoveries :-(
"
+ }
+
$("#recovery-list").html(html);
}
@@ -3748,6 +3754,10 @@ function updateLeaderboardPane(r){
html += "
" + (parseInt(i)+1) + ". " + list[i][0] + " - " + list[i][1] + "
";
}
+ if (r.length == 0) {
+ html = "
No recent recoveries :-(
"
+ }
+
$("#leaderboard-list").html(html);
}