[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/resources/src/jquery/ -> jquery.accessKeyLabel.js (summary)

jQuery plugin to update the tooltip to show the correct access key

File Size: 200 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  getAccessKeyPrefix()
  getAccessKeyLabel()
  updateTooltipOnElement()
  updateTooltip()

Functions
Functions that are not part of a class:

getAccessKeyPrefix( ua )   X-Ref
Get the prefix for the access key for browsers that don't support accessKeyLabel.

For browsers that support accessKeyLabel, #getAccessKeyLabel never calls here.

param: {Object} [ua] An object with a 'userAgent' and 'platform' property.
return: {string} Access key prefix

getAccessKeyLabel( element )   X-Ref
Get the access key label for an element.

Will use native accessKeyLabel if available (currently only in Firefox 8+),
falls back to #getAccessKeyPrefix.

param: {HTMLElement} element Element to get the label for
return: {string} Access key label

updateTooltipOnElement( element, titleElement )   X-Ref
Update the title for an element (on the element with the access key or it's label) to show
the correct access key label.

param: {HTMLElement} element Element with the accesskey
param: {HTMLElement} titleElement Element with the title to update (may be the same as `element`)

updateTooltip( element )   X-Ref
Update the title for an element to show the correct access key label.

param: {HTMLElement} element Element with the accesskey



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1