Changes

no edit summary
Line 248: Line 248:  
  var $tables = $('.header-fixed');
 
  var $tables = $('.header-fixed');
   −
  console.debug('FixedHeader: ' + $tables.length)
  −
   
  if ($tables.length == 0) return;
 
  if ($tables.length == 0) return;
    
  $tables.each(function() {
 
  $tables.each(function() {
 +
  if ($(this).hasClass('mw-collapsed') || $(this).hasClass('header-fixed-done')) return;
 
    // If this table is under tabber AND is hidden,
 
    // If this table is under tabber AND is hidden,
 
    // temporarily make element visible so we can pull its width data later
 
    // temporarily make element visible so we can pull its width data later
Line 306: Line 305:  
      tabberTabParent.style.display = originalStyleDisplay;
 
      tabberTabParent.style.display = originalStyleDisplay;
 
    }
 
    }
 +
   
 +
    $(this).addClass('header-fixed-done');
 
  });
 
  });
  
cssedit, gkautomate
6,926

edits