Permalink
Browse files

Merge branch 'MDL-37668-m24' of git://github.com/sammarshallou/moodle…

… into MOODLE_24_STABLE
  • Loading branch information...
2 parents 353db49 + e978e6b commit 21126fc5e8e7528a014bd3077deab2c7b70c4c3d Sam Hemelryk committed Jan 28, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/javascript-static.js
View
12 lib/javascript-static.js
@@ -1519,7 +1519,7 @@ M.util.help_icon = {
});
this.overlay.render(Y.one(document.body));
- footerbtn.on('click', this.overlay.hide, this.overlay);
+ footerbtn.on('click', this.close, this);
var boundingBox = this.overlay.get("boundingBox");
@@ -1580,8 +1580,14 @@ M.util.help_icon = {
},
display_callback : function(content) {
- content = '<div role="alert">' + content + '</div>';
- this.overlay.set('bodyContent', content);
+ var contentnode, heading;
+ contentnode = Y.Node.create('<div role="alert">' + content + '</div>');
+ this.overlay.set('bodyContent', contentnode);
+ heading = contentnode.one('h1');
+ if (heading) {
+ heading.set('tabIndex', 0);
+ heading.focus();
+ }
},
hideContent : function() {

0 comments on commit 21126fc

Please sign in to comment.