mediawiki-extensions-Popups/resources/ext.popups.targets
Baha 827e1dbeb2 Detect whether NavPopups gadget is enabled before showing a hovercard
Before this change we only used to check whether NavPopups gadget is
enabled once per page load. The premise was that we could figure out
whether the gadget was enabled easily given the module name. Since
the gadget module name can be different on diffirent wikis, that
solution would not scale.

With this change we check whether the gadget is enabled before each
hover over an eligible link. We rely on the existence of the global
`window.pg` object. The existence of the object means that the
gadget is enabled, thus we do not show Hovercards.

Bug: T135628
Change-Id: Ica154dd3bfd913202a8b558ea4b10ad177176f83
2016-06-07 17:39:58 -04:00
..
desktopTarget.js Detect whether NavPopups gadget is enabled before showing a hovercard 2016-06-07 17:39:58 -04:00
mobileTarget.js Remove the need for global mw.popups.triggers 2016-06-06 09:30:54 -04:00