mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2025-01-05 10:45:07 +00:00
dd98179a15
Save Hovercards enabled state in localStorage (jStorage) Change-Id: I374805eed0bc9f262b29474093f0357c56b42c83
16 lines
452 B
JavaScript
16 lines
452 B
JavaScript
/*global disablePopups: false*/
|
|
|
|
// Disable NavigationPopups
|
|
// The `disablePopups` function exists if NavPopups is activated. If it
|
|
// exists, its called, otherwise, we do nothing.
|
|
|
|
// This should be happening in NavPopups itself or by disabling the gadget
|
|
// This is a temporary fix
|
|
( function ( $, mw ) {
|
|
$( function () {
|
|
if ( typeof disablePopups !== 'undefined' && mw.popups.enabled ) {
|
|
disablePopups();
|
|
}
|
|
} );
|
|
} ( jQuery, mediaWiki ) );
|