From 5daabaaf5a1cd7bcfcbf79a292e9e944dae86dd0 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 30 Oct 2013 18:03:56 +0100 Subject: [PATCH] modale register bug fix --- js/materio_user.js | 4 ++++ 1 file changed, 4 insertions(+) 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');