From 5e5813fb3d1b2de8692066fd3e3b9534ef48148c Mon Sep 17 00:00:00 2001 From: Mats Lindblad Date: Fri, 14 Feb 2014 11:22:21 +0100 Subject: [PATCH] Trigger an event on close I've added this to my local copy because I need to clean up a form inside my leanModal and I thought it was a good idea to share the idea. --- jquery.leanModal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.leanModal.js b/jquery.leanModal.js index facf07e..e3d636b 100644 --- a/jquery.leanModal.js +++ b/jquery.leanModal.js @@ -63,11 +63,11 @@ $("#lean_overlay").fadeOut(200); - $(modal_id).css({ 'display' : 'none' }); + $(modal_id).css({ 'display' : 'none' }).trigger('leanmodal:closed'); } } }); -})(jQuery); \ No newline at end of file +})(jQuery);