plugin

A list of jQuery plugins that can be used on a jQuery object.

Show:

Methods

(static) updateTooltipAccessKeys() → {jQuery}

...

Update the titles for all elements in a jQuery selection. Provided by mediawiki.util module.

Source:
Returns:
Type
jQuery
Example
// Converts tooltip "[z]" to associated browser shortcut key e.g. "[ctrl-option-z]"
  mw.loader.using( 'mediawiki.util' ).then( () => {
    var $a = $('<a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a>');
    $a.updateTooltipAccessKeys();
  } );