Permalink
Browse files

Hide per card counts when disabled.

  • Loading branch information...
1 parent 59590f7 commit 165d4e37b165605c78fa7f32decb91c108933fad @drheld committed May 15, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 card_counts.js
View
@@ -73,6 +73,8 @@ function growHeaderColumns() {
// Set up the card count cells for all players in text mode.
function setupPerPlayerTextCardCounts() {
+ if (disabled) return;
+
// For each row in the supply table, add a column count cell for each player.
$(".txcardname").each(function() {
var $this = $(this);
@@ -97,6 +99,8 @@ function setupPerPlayerTextCardCounts() {
// Set up the per-player card counts in image mode for a given column.
function setupPerPlayerImageCardCounts(region) {
+ if (disabled) return;
+
var selector = '.' + region + '-column';
// make "hr" rows span all columns

0 comments on commit 165d4e3

Please sign in to comment.