Skip to content

Commit 8403222

Browse files
committed
feat: trigger wikipage.content hook after loading transcluded content
1 parent 37495f7 commit 8403222

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/ext.tabberNeue/Transclude.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ class Transclude {
9494
clearTimeout( loadingTimerId );
9595

9696
this.activeTabpanel.innerHTML = data;
97+
98+
// Fire the wikipage.content hook for potential consumers of the hook
99+
// eslint-disable-next-line no-jquery/no-jquery-constructor
100+
mw.hook( 'wikipage.content' ).fire( $( this.activeTabpanel ) );
97101
} catch ( error ) {
98102
this.activeTabpanel.classList.remove( 'tabber__panel--loading' );
99103
clearTimeout( loadingTimerId );

0 commit comments

Comments
 (0)