Revert "Don't load mediawiki.ui.button on page load"

This reverts commit 693087b886.

Reason for revert: This was a bug in my code. Sorry about that.

Change-Id: Ia3bb8d2b38e179a570f94bfd1d989bb51fab41e4
This commit is contained in:
Jdlrobson
2023-07-17 20:08:45 +00:00
committed by jenkins-bot
parent 78952fd1d4
commit d7d63236fd
2 changed files with 3 additions and 5 deletions

View File

@@ -190,9 +190,7 @@
this.compactList[ language ].parentNode.style.display = '';
}
mw.loader.using( 'mediawiki.ui.button' ).then( function () {
this.addTrigger();
} );
this.addTrigger();
mw.hook( 'mw.uls.compactlinks.initialized' ).fire( true );
};