mediawiki-skins-Vector/resources/skins.vector.legacy.js/skin-legacy.js
Sergio Gimeno 30bddf7f35 Apply body styles to teleported elements in vector legacy
Bug: T347199
Follow-up: Ibd5d8c7cc7880678fae498a451cfd417f1f8e1b8
Change-Id: Ief1c88ce7c3110c2e92793bec3994b8b6a548a7d
2023-09-28 12:20:49 +02:00

20 lines
664 B
JavaScript

/* eslint-disable no-jquery/no-jquery-constructor */
/** @interface MediaWikiPageReadyModule */
const
collapsibleTabs = require( './collapsibleTabs.js' ),
/** @type {MediaWikiPageReadyModule} */
pageReady = require( /** @type {string} */( 'mediawiki.page.ready' ) ),
portlets = require( './portlets.js' ),
vector = require( './vector.js' ),
teleportTarget = /** @type {HTMLElement} */require( /** @type {string} */ ( 'mediawiki.page.ready' ) ).teleportTarget;
function main() {
collapsibleTabs.init();
$( vector.init );
portlets.main();
pageReady.loadSearchModule( 'mediawiki.searchSuggest' );
teleportTarget.classList.add( 'vector-body' );
}
main();