diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/includes/admin/generalAdmin.html b/gemp-lotr/gemp-lotr-async/src/main/web/includes/admin/generalAdmin.html index 9df1279f6..35e7d930f 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/includes/admin/generalAdmin.html +++ b/gemp-lotr/gemp-lotr-async/src/main/web/includes/admin/generalAdmin.html @@ -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.
Live tournaments: " + tournaments.length + "
THE ABOVE TOURNAMENTS WILL BE INTERRUPTED AND MAY NOT BE ABLE TO BE RESUMED"); + } + } + }); + $("#clear-cache-button").button().click( function () { $("#cache-response").html("Processing...");