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 authored and jenkins-bot committed 2023-07-17 20:24:38 +00:00
1 parent 78952fd1d4
commit d7d63236fd
2 files changed
+3 -5

No files matched your search

+1 -3
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 );
};