mediawiki-extensions-Popups/resources/ext.popups.disablenavpop.js
Prateek Saxena dd98179a15 Add settings
Save Hovercards enabled state in localStorage (jStorage)

Change-Id: I374805eed0bc9f262b29474093f0357c56b42c83
2014-07-28 13:38:03 +05:30

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