Go to file
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
i18n Localisation updates from https://translatewiki.net. 2016-06-05 22:22:29 +02:00
resources Detect whether NavPopups gadget is enabled before showing a hovercard 2016-06-07 17:39:58 -04:00
tests Remove the need for global mw.popups.triggers 2016-06-06 09:30:54 -04:00
.gitignore Add composer.json 2015-11-19 14:30:20 +01:00
.gitreview Add .gitreview 2014-02-06 11:01:39 +01:00
.jscsrc Add jscs and jshint tasks to the Gruntfile 2015-09-04 13:57:52 +05:30
.jshintignore Update Gruntfile.js 2015-10-26 08:49:33 +00:00
.jshintrc Add link preview feature to mobile beta mode 2016-03-05 18:22:30 +01:00
composer.json build: Updating development dependencies 2016-01-05 10:39:25 -08:00
COPYING Add COPYING file 2014-02-06 15:38:46 +05:30
extension.json Replace use of jStorage with mw.storage 2016-05-30 12:30:38 -07:00
Gemfile Update mediawiki_api gem to 1.7.1 2016-05-26 01:34:35 +02:00
Gruntfile.js Update Gruntfile.js 2015-10-26 08:49:33 +00:00
jsduck.json Setup jsduck to run on 'npm run doc' 2015-08-03 15:54:25 +05:30
package.json build: Updating development dependencies 2015-12-29 11:48:27 -08:00
Popups.hooks.php Render settings via template 2016-05-30 10:49:17 -07:00
Popups.php Add extension.json, empty php entry point 2015-07-02 22:19:24 +00:00