Added - warning that clearing server cache can break live tournaments

This commit is contained in:
jakub.salavec
2025-04-17 17:24:17 +02:00
parent a27889f058
commit ee3ca08f0e

View File

@@ -24,7 +24,18 @@
$("#shutdown-response").html(string);
});
});
hall.comm.getLiveTournaments(
function (xml) {
var root = xml.documentElement;
if (root.tagName == 'tournaments') {
var tournaments = root.getElementsByTagName("tournament");
if (tournaments.length > 0) {
$("#cache-response").html("Ready.<br>Live tournaments: " + tournaments.length + "<br>THE ABOVE TOURNAMENTS WILL BE INTERRUPTED AND MAY NOT BE ABLE TO BE RESUMED");
}
}
});
$("#clear-cache-button").button().click(
function () {
$("#cache-response").html("Processing...");