Modified - removes draft, sealed and active tournament tabs from hall
This commit is contained in:
@@ -226,52 +226,6 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="draftQueuesHeader" class='eventHeader draftQueues'>Draft Games<span class='count'>(0)</span></div>
|
||||
<div id="draftQueuesContent" class='visibilityToggle'>
|
||||
<table class='tables draftQueues'>
|
||||
<tr>
|
||||
<th width='10%'>Format</th>
|
||||
<th width='8%'>Collection</th>
|
||||
<th width='30%'>Queue name</th>
|
||||
<th width='26%'>Starts</th>
|
||||
<th width='10%'>System</th>
|
||||
<th width='6%'>Players</th>
|
||||
<th width='10%'>Actions</th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="sealedQueuesHeader" class='eventHeader sealedQueues'>Sealed Games<span class='count'>(0)</span></div>
|
||||
<div id="sealedQueuesContent" class='visibilityToggle'>
|
||||
<table class='tables sealedQueues'>
|
||||
<tr>
|
||||
<th width='10%'>Format</th>
|
||||
<th width='8%'>Collection</th>
|
||||
<th width='30%'>Queue name</th>
|
||||
<th width='26%'>Starts</th>
|
||||
<th width='10%'>System</th>
|
||||
<th width='6%'>Players</th>
|
||||
<th width='10%'>Actions</th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="activeTournamentsHeader" class='eventHeader tournaments'>Active Tournaments<span class='count'>(0)</span></div>
|
||||
<div id="activeTournamentsContent" class='visibilityToggle'>
|
||||
<table class='tables tournaments'>
|
||||
<tr>
|
||||
<th width='10%'>Format</th>
|
||||
<th width='10%'>Collection</th>
|
||||
<th width='25%'>Tournament name</th>
|
||||
<th width='15%'>System</th>
|
||||
<th width='10%'>Stage</th>
|
||||
<th width='10%'>Round</th>
|
||||
<th width='10%'>Players</th>
|
||||
<th width='10%'>Actions</th>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="limitedGamesHeader" class='eventHeader limitedGames'>Limited Games</div>
|
||||
<div id="limitedGamesContent" class='visibilityToggle'>
|
||||
<form id="limitedGameForm">
|
||||
|
||||
@@ -118,7 +118,7 @@ var GempLotrHallUI = Class.extend({
|
||||
|
||||
var hallSettingsStr = $.cookie("hallSettings");
|
||||
if (hallSettingsStr == null)
|
||||
hallSettingsStr = "1|1|0|0|0|0|0|0|0";
|
||||
hallSettingsStr = "1|1|0|0|0|0|0";
|
||||
var hallSettings = hallSettingsStr.split("|");
|
||||
|
||||
this.initTable(hallSettings[0] == "1", "waitingTablesHeader", "waitingTablesContent");
|
||||
@@ -127,9 +127,7 @@ var GempLotrHallUI = Class.extend({
|
||||
this.initTable(hallSettings[3] == "1", "wcQueuesHeader", "wcQueuesContent");
|
||||
this.initTable(hallSettings[4] == "1", "wcEventsHeader", "wcEventsContent");
|
||||
this.initTable(hallSettings[5] == "1", "tournamentQueuesHeader", "tournamentQueuesContent");
|
||||
this.initTable(hallSettings[6] == "1", "draftQueuesHeader", "draftQueuesContent");
|
||||
this.initTable(hallSettings[7] == "1", "sealedQueuesHeader", "sealedQueuesContent");
|
||||
this.initTable(hallSettings[8] == "1", "activeTournamentsHeader", "activeTournamentsContent");
|
||||
this.initTable(hallSettings[6] == "1", "limitedGamesHeader", "limitedGamesContent");
|
||||
|
||||
$('#wcQueuesHeader').hide();
|
||||
$('#wcQueuesContent').hide();
|
||||
@@ -942,12 +940,6 @@ var GempLotrHallUI = Class.extend({
|
||||
if(isWC) {
|
||||
$("table.wc-queues", this.tablesDiv)
|
||||
.append(row);
|
||||
} else if (type.includes("Sealed")) {
|
||||
$("table.sealedQueues", this.tablesDiv)
|
||||
.append(row);
|
||||
} else if (type.includes("Draft")) {
|
||||
$("table.draftQueues", this.tablesDiv)
|
||||
.append(row);
|
||||
} else {
|
||||
$("table.queues", this.tablesDiv)
|
||||
.append(row);
|
||||
@@ -1184,9 +1176,6 @@ var GempLotrHallUI = Class.extend({
|
||||
if (isWC) {
|
||||
$("table.wc-events", this.tablesDiv)
|
||||
.append(row);
|
||||
} else {
|
||||
$("table.tournaments", this.tablesDiv)
|
||||
.append(row);
|
||||
}
|
||||
// Display running tournaments also as playing tables
|
||||
$("table.playingTables", this.tablesDiv)
|
||||
@@ -1421,12 +1410,9 @@ var GempLotrHallUI = Class.extend({
|
||||
}
|
||||
|
||||
$(".count", $(".eventHeader.queues")).html("(" + ($("tr", $("table.queues")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.tournaments")).html("(" + ($("tr", $("table.tournaments")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.waitingTables")).html("(" + ($("tr", $("table.waitingTables")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.playingTables")).html("(" + ($("tr", $("table.playingTables")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.finishedTables")).html("(" + ($("tr", $("table.finishedTables")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.draftQueues")).html("(" + ($("tr", $("table.draftQueues")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.sealedQueues")).html("(" + ($("tr", $("table.sealedQueues")).length - 1) + ")");
|
||||
|
||||
$(".count", $(".eventHeader.wc-queues")).html("(" + ($("tr", $("table.wc-queues")).length - 1) + ")");
|
||||
$(".count", $(".eventHeader.wc-events")).html("(" + ($("tr", $("table.wc-events")).length - 1) + ")");
|
||||
|
||||
Reference in New Issue
Block a user