mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 11:46:55 +00:00
827e1dbeb2
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 |
||
---|---|---|
i18n | ||
resources | ||
tests | ||
.gitignore | ||
.gitreview | ||
.jscsrc | ||
.jshintignore | ||
.jshintrc | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gemfile | ||
Gruntfile.js | ||
jsduck.json | ||
package.json | ||
Popups.hooks.php | ||
Popups.php |