Add jquery.accessKeyLabel javascript module
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 22 Apr 2014 12:16:45 +0000 (14:16 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 25 Apr 2014 18:17:11 +0000 (20:17 +0200)
commit6a81b0e53836cf72d54fc3ceb4059f8ecb9aa51e
treedfecaf481e15c77e05a4e42e6f896f2e93a022f9
parenta3983418d5748fbccdda15e0e48af90c50ef1f67
Add jquery.accessKeyLabel javascript module

Extracted the accessKey logic from mediawiki.util and moved it to it's
own module. mediawiki.util now depends on the new module,
moved the jquery.client dependency from mediawiki.util to the new
module.

Now the accesskey is also set, when no placeholder like '[x]' is set on
the title (bug 48505).
Also the label for a input or textarea (and some other elements) gets
updated (bug 63849).

Also implements support for the browsers accessKeyLabel function (bug
37239), which will give a localised accessKey string, if supported (at
the moment FireFox 8+ only)

Bug: 37239
Bug: 48505
Bug: 63849
Change-Id: I211593629ca23540dcd5a93b11834155f4f04883
maintenance/jsduck/config.json
resources/Resources.php
resources/src/jquery/jquery.accessKeyLabel.js [new file with mode: 0644]
resources/src/mediawiki/mediawiki.util.js
tests/qunit/QUnitTestResources.php
tests/qunit/suites/resources/jquery/jquery.accessKeyLabel.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js