Permalink
Browse files

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

… into MOODLE_23_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jan 28, 2013
2 parents adf01e8 + 9fb8d1f commit 04093db18a77a44a1eb177c7215fdd7c7e87c1a6
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/javascript-static.js
View
@@ -1464,7 +1464,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");
@@ -1525,8 +1525,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 04093db

Please sign in to comment.