mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-37668-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
44aad12347
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user