jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/383026 )
Change subject: Replace jquery delegate with jquery on
..
Replace jquery delegate with jquery on
Change-Id: I941d809bcbad15bb8abc5e06fb056f1d4aea2011
---
M js/collapsibleNav.js
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Paladox: Looks good to me, approved
jenkins-bot: Verified
diff --git a/js/collapsibleNav.js b/js/collapsibleNav.js
index 84a5c87..8ebdab1 100644
--- a/js/collapsibleNav.js
+++ b/js/collapsibleNav.js
@@ -124,13 +124,13 @@
// Toggle the selected menu's class and expand or collapse the
menu
$( '#mw-panel' )
- .delegate( '.portal:not(.persistent) > h5', 'keydown',
function ( e ) {
+ .on( 'keydown', '.portal:not(.persistent) > h5',
function ( e ) {
// Make the space and enter keys act as a click
if ( e.which === 13 /* Enter */ || e.which ===
32 /* Space */ ) {
toggle( $( this ) );
}
} )
- .delegate( '.portal:not(.persistent) > h5',
'mousedown', function ( e ) {
+ .on( 'mousedown', '.portal:not(.persistent) > h5',
function ( e ) {
if ( e.which !== 3 ) { // Right mouse click
toggle( $( this ) );
$( this ).blur();
--
To view, visit https://gerrit.wikimedia.org/r/383026
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I941d809bcbad15bb8abc5e06fb056f1d4aea2011
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/skins/Metrolook
Gerrit-Branch: master
Gerrit-Owner: Paladox
Gerrit-Reviewer: Paladox
Gerrit-Reviewer: jenkins-bot <>
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits