mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
7975fde745
Change-Id: Iec1dd93a83fe393bd8717884ab4bab692ad7b6f4
11 lines
298 B
JavaScript
11 lines
298 B
JavaScript
( function ( $, mw ) {
|
|
// FIXME: There should be a way to turn this off
|
|
mw.popups.enabled = true;
|
|
|
|
mw.hook( 'wikipage.content' ).add( function ( $content ) {
|
|
mw.popups.$content = $content;
|
|
mw.popups.setupTriggers( mw.popups.selectPopupElements(), 'click' );
|
|
} );
|
|
|
|
} )( jQuery, mediaWiki );
|