mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-19 11:20:49 +00:00
30bddf7f35
Bug: T347199 Follow-up: Ibd5d8c7cc7880678fae498a451cfd417f1f8e1b8 Change-Id: Ief1c88ce7c3110c2e92793bec3994b8b6a548a7d
20 lines
664 B
JavaScript
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();
|