Added - warning that clearing server cache can break live tournaments
This commit is contained in:
@@ -25,6 +25,17 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
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(
|
$("#clear-cache-button").button().click(
|
||||||
function () {
|
function () {
|
||||||
$("#cache-response").html("Processing...");
|
$("#cache-response").html("Processing...");
|
||||||
|
|||||||
Reference in New Issue
Block a user