Rafidaslam has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/396025 )
Change subject: ext.translate.mainpage.js: Use jquery.fn.on()
......................................................................
ext.translate.mainpage.js: Use jquery.fn.on()
Change the use of jquery.fn.hover() to jquery.fn.on()
due to deprecation of .hover() in
`resources/js/ext.translate.mainpage.js`
Bug: T177941
Change-Id: I5309d1537021796b9b77978edd9972f63501c288
---
M resources/js/ext.translate.mainpage.js
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwnMainPage
refs/changes/25/396025/1
diff --git a/resources/js/ext.translate.mainpage.js
b/resources/js/ext.translate.mainpage.js
index 0cb236d..5d3e1ac 100644
--- a/resources/js/ext.translate.mainpage.js
+++ b/resources/js/ext.translate.mainpage.js
@@ -120,14 +120,14 @@
showMessageGroupStats( selectedLanguage );
- $tiles.hover(
- function () {
+ $tiles.on( {
+ mouseenter: function () {
$( this ).find( '.project-actions'
).removeClass( 'hide' );
},
- function () {
+ mouseleave: function () {
$( this ).find( '.project-actions' ).addClass(
'hide' );
}
- );
+ } );
$tiles.click( function () {
var url = $( this ).data( 'url' );
--
To view, visit https://gerrit.wikimedia.org/r/396025
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5309d1537021796b9b77978edd9972f63501c288
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TwnMainPage
Gerrit-Branch: master
Gerrit-Owner: Rafidaslam <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits