Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit b27daf9e736e9bc1a482f4e12017cbcbe82edc0a 1 parent d0d6d5f
Frédéric Massart FMCorz authored

Showing 1 changed file with 0 additions and 6 deletions. Show diff stats Hide diff stats

  1. +0 6 lib/javascript-static.js
6 lib/javascript-static.js
@@ -1395,11 +1395,9 @@ M.util.help_icon = {
1395 1395 init : function() {
1396 1396
1397 1397 var strclose = Y.Escape.html(M.str.form.close);
1398   - var closebtn = Y.Node.create('<a id="closehelpbox" href="#"><img src="'+M.util.image_url('t/delete', 'moodle')+'" alt="'+strclose+'" /></a>');
1399 1398 var footerbtn = Y.Node.create('<button class="closebtn">'+strclose+'</button>');
1400 1399 // Create an overlay from markup
1401 1400 this.overlay = new Y.Overlay({
1402   - headerContent: closebtn,
1403 1401 footerContent: footerbtn,
1404 1402 bodyContent: '',
1405 1403 id: 'helppopupbox',
@@ -1409,7 +1407,6 @@ M.util.help_icon = {
1409 1407 });
1410 1408 this.overlay.render(Y.one(document.body));
1411 1409
1412   - closebtn.on('click', this.overlay.hide, this.overlay);
1413 1410 footerbtn.on('click', this.overlay.hide, this.overlay);
1414 1411
1415 1412 var boundingBox = this.overlay.get("boundingBox");
@@ -1426,9 +1423,6 @@ M.util.help_icon = {
1426 1423 this.overlay.hide();
1427 1424 }
1428 1425 }, this);
1429   -
1430   - Y.on("key", this.close, closebtn , "down:13", this);
1431   - closebtn.on('click', this.close, this);
1432 1426 },
1433 1427
1434 1428 close : function(e) {

0 comments on commit b27daf9

Please sign in to comment.
Something went wrong with that request. Please try again.