mediawiki-skins-Vector/resources/skins.vector.legacy.js/skin-legacy.js
Jon Robson 967965b260 Add mw.util.addPortlet handler for legacy Vector
This copies the Vector 2022 hook approach and applies
it to legacy Vector.

Bug: T342814
Change-Id: I382bfa3b25f4814fbf627856fa5957f7e50bf8a8
2023-07-26 14:05:16 -07:00

18 lines
496 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' );
function main() {
collapsibleTabs.init();
$( vector.init );
portlets.main();
pageReady.loadSearchModule( 'mediawiki.searchSuggest' );
}
main();