// Things outside the wikipage content
$( function () {
- var $nodes, $oouiNodes;
+ var $nodes;
if ( !supportsPlaceholder ) {
// Exclude content to avoid hitting it twice for the (first) wikipage content
// Add accesskey hints to the tooltips
$( '[accesskey]' ).updateTooltipAccessKeys();
- // Infuse OOUI widgets, if any are present
- $oouiNodes = $( '[data-ooui]' );
- if ( $oouiNodes.length ) {
- // FIXME: We should only load the widgets that are being infused
- mw.loader.using( [
- 'mediawiki.widgets',
- 'mediawiki.widgets.UserInputWidget',
- 'mediawiki.widgets.SearchInputWidget'
- ] ).done( function () {
- $oouiNodes.each( function () {
- OO.ui.infuse( this );
- } );
- } );
- }
-
$nodes = $( '.catlinks[data-mw="interface"]' );
if ( $nodes.length ) {
/**