Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28235 form: Removed close icon of help icon popups

  • Loading branch information...
commit 2bfd174b062ebce450621e137129c623bff264f8 1 parent 6b8e97b
@FMCorz FMCorz authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/javascript-static.js
View
6 lib/javascript-static.js
@@ -1311,11 +1311,9 @@ M.util.help_icon = {
init : function() {
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>');
// Create an overlay from markup
this.overlay = new Y.Overlay({
- headerContent: closebtn,
footerContent: footerbtn,
bodyContent: '',
id: 'helppopupbox',
@@ -1325,7 +1323,6 @@ M.util.help_icon = {
});
this.overlay.render(Y.one(document.body));
- closebtn.on('click', this.overlay.hide, this.overlay);
footerbtn.on('click', this.overlay.hide, this.overlay);
var boundingBox = this.overlay.get("boundingBox");
@@ -1342,9 +1339,6 @@ M.util.help_icon = {
this.overlay.hide();
}
}, this);
-
- Y.on("key", this.close, closebtn , "down:13", this);
- closebtn.on('click', this.close, this);
},
close : function(e) {
Please sign in to comment.
Something went wrong with that request. Please try again.