Tournaments can be configured now
This commit is contained in:
@@ -37,6 +37,8 @@ window.onload = function() {
|
||||
|
||||
var lobbiesAsTableRows = _.reduce(this.lobbies, function (memo, lobby) {
|
||||
|
||||
if ($("#deciderName").html() !== lobby.deciderName) return memo;
|
||||
|
||||
var joinButton = (lobby.status === "NotStarted()") ? '<button class="btn btn-primary join-as-player" onclick="joinDecider(\''+lobby.lobbyActorName+'\')">' +
|
||||
'<img src="/assets/images/buttons/isAuto.png" style="height: 25px;"> Join lobby <img src="/assets/images/buttons/isAuto.png" style="height: 25px;">' +
|
||||
'</button>' : "";
|
||||
@@ -77,7 +79,8 @@ window.onload = function() {
|
||||
$("#createDecider").click(function(event) {
|
||||
event.preventDefault();
|
||||
ws.send(JSON.stringify({
|
||||
type: "createDecider"
|
||||
type: "createDecider",
|
||||
deciderName: $("#deciderName").html()
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -312,10 +315,12 @@ function renderPlayersAndStats(lobby) {
|
||||
if(lobby.user1Info.name !== userName){
|
||||
disabledText = "disabled";
|
||||
}
|
||||
|
||||
//TODO: here from config
|
||||
resHtml += "<br/><select class=\"form-control\" id = 'deciderOption' onChange='changeLobbyType()' "+disabledText+" >" +
|
||||
"<option "+looserPickSelected+" value = 'looserpick'>Play on last map (BO1)</option>" +
|
||||
"<option "+last3Selected+" value = 'last3'>Play on last 3 maps (BO3)</option>" +
|
||||
"<option "+last5Selected+" value = 'last5'>Play on last 5 maps (BO5)</option>" +
|
||||
"<option "+looserPickSelected+" value = 'looserpick'>Play on last map</option>" +
|
||||
//"<option "+last3Selected+" value = 'last3'>Play on last 3 maps</option>" +
|
||||
//"<option "+last5Selected+" value = 'last5'>Play on last 5 maps</option>" +
|
||||
//"<option "+superfinalSelected+" value = 'superfinal'>Superfinal (BO7)</option>" +
|
||||
"</select>";
|
||||
|
||||
@@ -324,8 +329,10 @@ function renderPlayersAndStats(lobby) {
|
||||
}else{
|
||||
disabledText = "";
|
||||
}
|
||||
resHtml += "<br/><label><input onchange=\"changeIsNecronSelected()\" id='isNecron' type=\"checkbox\" "+isNecronsSelected +" " + disabledText +">" +
|
||||
" Necrons are present</label>";
|
||||
if($("#necronPresence").html() === "true"){
|
||||
resHtml += "<br/><label><input onchange=\"changeIsNecronSelected()\" id='isNecron' type=\"checkbox\" "+isNecronsSelected +" " + disabledText +">" +
|
||||
" Necrons are present</label>";
|
||||
}
|
||||
resHtml += "</div>";
|
||||
break;
|
||||
case "Draft()":
|
||||
|
||||
Reference in New Issue
Block a user