mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
44c57834b1
Bug: T64952 Change-Id: I7985341006d587671077f3dc32dd02e8dfb38972
20 lines
687 B
JavaScript
20 lines
687 B
JavaScript
/*global disablePopups: false*/
|
|
|
|
// Disable NavigationPopups
|
|
// The `disablePopups` function exists if NavPopups is activated. If it
|
|
// exists, its called, otherwise, we do nothing.
|
|
|
|
// Since NavPopups is initialized several times, its best to disable it
|
|
// right when we are about to render the popup, from mw.popups.render.render.
|
|
// See https://phabricator.wikimedia.org/T64952#800921
|
|
|
|
// This should be happening in NavPopups itself or by disabling the gadget
|
|
// HACK: This is a temporary fix
|
|
( function ( $, mw ) {
|
|
mw.popups.disableNavPopup = function () {
|
|
if ( typeof disablePopups !== 'undefined' && mw.popups.enabled ) {
|
|
disablePopups();
|
|
}
|
|
};
|
|
} ( jQuery, mediaWiki ) );
|