mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-14 00:19:28 +00:00
16 lines
377 B
JavaScript
16 lines
377 B
JavaScript
|
( function ( $, mw ) {
|
||
|
// FIXME: There should be a way to turn this off
|
||
|
mw.popups.enabled = true;
|
||
|
|
||
|
/**
|
||
|
* Triggers when a popup should be rendered.
|
||
|
*/
|
||
|
mw.popups.triggers = 'click';
|
||
|
|
||
|
mw.hook( 'wikipage.content' ).add( function ( $content ) {
|
||
|
mw.popups.$content = $content;
|
||
|
mw.popups.setupTriggers( mw.popups.selectPopupElements() );
|
||
|
} );
|
||
|
|
||
|
} )( jQuery, mediaWiki );
|