Merge branch 'wip-MDL-35823-master' of git://github.com/phalacee/moodle

This commit is contained in:
Dan Poltawski 2013-02-06 14:21:03 +08:00
commit 8c8d314ffd

View File

@ -1583,7 +1583,7 @@ M.util.help_icon = {
var contentnode, heading;
contentnode = Y.Node.create('<div role="alert">' + content + '</div>');
this.overlay.set('bodyContent', contentnode);
heading = contentnode.one('h1');
heading = contentnode.one('h2');
if (heading) {
heading.set('tabIndex', 0);
heading.focus();