diff --git a/lib/javascript-static.js b/lib/javascript-static.js index cf155e7daa6..653557b24e0 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -1392,11 +1392,9 @@ M.util.help_icon = { init : function() { var strclose = Y.Escape.html(M.str.form.close); - var closebtn = Y.Node.create(''+strclose+''); var footerbtn = Y.Node.create(''); // Create an overlay from markup this.overlay = new Y.Overlay({ - headerContent: closebtn, footerContent: footerbtn, bodyContent: '', id: 'helppopupbox', @@ -1406,7 +1404,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"); @@ -1423,9 +1420,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) {