mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Fix some UI bugs.
This commit is contained in:
@@ -106,10 +106,11 @@ var handlePlaySound = function(sound) {
|
||||
// Handles a websocket message to update the alliance selection screen.
|
||||
var handleAllianceSelection = function(alliances) {
|
||||
if (alliances) {
|
||||
var numColumns = alliances[0].length + 1;
|
||||
$.each(alliances, function(k, v) {
|
||||
v.Index = k + 1;
|
||||
});
|
||||
$("#allianceSelection").html(allianceSelectionTemplate(alliances));
|
||||
$("#allianceSelection").html(allianceSelectionTemplate({alliances: alliances, numColumns: numColumns}));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user