Changes

no edit summary
Line 252: Line 252:  
if ($tables.length == 0) return;
 
if ($tables.length == 0) return;
   −
$tables.each(function() {
+
$tables.each(function(i) {
 
  if ($(this).hasClass('header-fixed-done')) return;
 
  if ($(this).hasClass('header-fixed-done')) return;
 
  if ($(this).hasClass('mw-collapsed')) {
 
  if ($(this).hasClass('mw-collapsed')) {
 +
  console.debug('header-fixed: collapsed: ' + i)
 
  $(this).find('.mw-collapsible-text').click(function() {
 
  $(this).find('.mw-collapsible-text').click(function() {
  setTimeout(function() { initializeStickyHeader(); }, 500);
+
  console.debug('header-fixed: click: ' + i)
 +
  setTimeout(function() { initializeStickyHeader(); }, 1000);
 
  })
 
  })
 
  return;
 
  return;
Line 303: Line 305:  
    */
 
    */
 
    $(this).addClass('header-fixed-done');
 
    $(this).addClass('header-fixed-done');
 +
    console.debug('header-fixed: fixed: ' + i)
 
});
 
});
 
}
 
}
Line 329: Line 332:  
}
 
}
 
*/
 
*/
initializeStickyHeader();
+
setTimeout(function() { initializeStickyHeader(); }, 1000);
 
//})
 
//})
 
});
 
});
cssedit, gkautomate
6,926

edits