Remove stats when server is unavailable

This commit is contained in:
Tony Garnock-Jones 2012-04-29 06:05:48 -04:00
parent d49fca8f50
commit 2e1919b754
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ function refresh_server_stats() {
$("#server_stats_uptime").text(data.uptime + " seconds");
}).error(function () {
$("#server_ok")[0].className = "server_not_ok";
$("#server_stats_connection_count").text("—");
$("#server_stats_boot_time").text("—");
$("#server_stats_uptime").text("— seconds");
});
}