Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 17:49, 16 December 2022
89 bytes added
,
1 year ago
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
7,064
edits