mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-28235 form: Removed close icon of help icon popups
This commit is contained in:
parent
edb3b7b473
commit
81adabd244
1 changed files with 0 additions and 6 deletions
|
@ -1414,11 +1414,9 @@ M.util.help_icon = {
|
||||||
init : function() {
|
init : function() {
|
||||||
|
|
||||||
var strclose = Y.Escape.html(M.str.form.close);
|
var strclose = Y.Escape.html(M.str.form.close);
|
||||||
var closebtn = Y.Node.create('<a id="closehelpbox" href="#"><img src="'+M.util.image_url('t/delete', 'moodle')+'" alt="'+strclose+'" /></a>');
|
|
||||||
var footerbtn = Y.Node.create('<button class="closebtn">'+strclose+'</button>');
|
var footerbtn = Y.Node.create('<button class="closebtn">'+strclose+'</button>');
|
||||||
// Create an overlay from markup
|
// Create an overlay from markup
|
||||||
this.overlay = new Y.Overlay({
|
this.overlay = new Y.Overlay({
|
||||||
headerContent: closebtn,
|
|
||||||
footerContent: footerbtn,
|
footerContent: footerbtn,
|
||||||
bodyContent: '',
|
bodyContent: '',
|
||||||
id: 'helppopupbox',
|
id: 'helppopupbox',
|
||||||
|
@ -1428,7 +1426,6 @@ M.util.help_icon = {
|
||||||
});
|
});
|
||||||
this.overlay.render(Y.one(document.body));
|
this.overlay.render(Y.one(document.body));
|
||||||
|
|
||||||
closebtn.on('click', this.overlay.hide, this.overlay);
|
|
||||||
footerbtn.on('click', this.overlay.hide, this.overlay);
|
footerbtn.on('click', this.overlay.hide, this.overlay);
|
||||||
|
|
||||||
var boundingBox = this.overlay.get("boundingBox");
|
var boundingBox = this.overlay.get("boundingBox");
|
||||||
|
@ -1445,9 +1442,6 @@ M.util.help_icon = {
|
||||||
this.overlay.hide();
|
this.overlay.hide();
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
Y.on("key", this.close, closebtn , "down:13", this);
|
|
||||||
closebtn.on('click', this.close, this);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
close : function(e) {
|
close : function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue