diff --git a/js/materio_user.js b/js/materio_user.js index 12153782..63392694 100755 --- a/js/materio_user.js +++ b/js/materio_user.js @@ -63,6 +63,10 @@ MaterioUser = function(){ $('body').append($('
').addClass('modal-wrapper').append($modal)); + $('.modal-wrapper').bind('click', function(event) { + $(this).remove(); + }); + // doesn't work // Drupal.attachBehaviors('bodi>.modal-wrapper');