Permalink
Browse files

keep sideboarder sorted

  • Loading branch information...
Manuel-777 committed Jan 10, 2019
1 parent 9e0aa77 commit f7f1adb66677aa38663dbf19460e78805ae9879c
Showing with 4 additions and 1 deletion.
  1. +1 −1 window_main/index.css
  2. +3 −0 window_main/tournaments.js
@@ -2414,7 +2414,7 @@ a:hover {
margin: 0 auto;
flex-wrap: wrap;
display: flex;
justify-content: center;
justify-content: space-around;
max-width: 800px;
margin-bottom: 42px;
}
@@ -600,6 +600,9 @@ function drawSideboardableDeck() {
_div.css("dsiplay", "flex");
let mainboardDiv = $('<div class="decklist_divided"></dii>');

currentDeck.mainDeck.sort(compare_cards);
currentDeck.sideboard.sort(compare_cards);

let size = 0;
currentDeck.mainDeck.forEach(function(card) { size += card.quantity; });
addCardSeparator(`Mainboard (${size})`, mainboardDiv);

0 comments on commit f7f1adb

Please sign in to comment.