Merge "mediawiki.util: Only call $.fn.updateTooltipAccessKeys if accesskey is set"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 17 Aug 2018 21:18:22 +0000 (21:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 17 Aug 2018 21:18:22 +0000 (21:18 +0000)
resources/src/mediawiki.util.js

index 9eea6f3..ca0c303 100644 (file)
 
                        // Update tooltip for the access key after inserting into DOM
                        // to get a localized access key label (T69946).
-                       $link.updateTooltipAccessKeys();
+                       if ( accesskey ) {
+                               $link.updateTooltipAccessKeys();
+                       }
 
                        return $item[ 0 ];
                },