mediawiki-extensions-Popups/resources/ext.popups.targets/mobileTarget.js
jdlrobson 7975fde745 Remove the need for global mw.popups.triggers
Change-Id: Iec1dd93a83fe393bd8717884ab4bab692ad7b6f4
2016-06-06 09:30:54 -04:00

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 );