Wikimedia

Replace deprecated JavaScript code in the TwnMainPage extension (jQuery.hover)

When I visit a MediaWiki where TwnMainPage extension is installed, for example translatewiki.net and open the browser developer console, then I see the following warning: ext.translate.mainpage.js?e59c2:123 JQMIGRATE: jQuery.fn.hover() is deprecated

The JavaScript code that produces this warning needs to be replaced with a modern code.

For more information see https://phabricator.wikimedia.org/T177941

The code is in this Git repository: https://phabricator.wikimedia.org/diffusion/ETWN/

Patch needs to be submitted to Wikimedia Gerrit: https://www.mediawiki.org/wiki/Gerrit/Tutorial

You can find me as Nikerabbit on #mediawiki-i18n in Freenode IRC network: https://www.mediawiki.org/wiki/MediaWiki_on_IRC

Task tags

  • jquery
  • javascript

Students who completed this task

Rafid Aslam

Task type

  • code Code
close

2017