mediawiki.util: Insert node before updating tooltip for accesskey
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.util.js
index fe5f2b2..3a06a02 100644 (file)
                        }
 
                        if ( tooltip ) {
-                               $link.attr( 'title', tooltip ).updateTooltipAccessKeys();
+                               $link.attr( 'title', tooltip );
                        }
 
                        if ( nextnode ) {
                                $ul.append( $item );
                        }
 
+                       // Update tooltip for the access key after inserting into DOM
+                       // to get a localized access key label (bug 67946).
+                       $link.updateTooltipAccessKeys();
+
                        return $item[0];
                },