diff --git a/jquery.leanModal.js b/jquery.leanModal.js index facf07e..c787ccb 100644 --- a/jquery.leanModal.js +++ b/jquery.leanModal.js @@ -11,9 +11,11 @@ } var overlay = $("
"); - - $("body").append(overlay); - + + if (!$("#lean_overlay").length) { + $("body").append(overlay); + } + options = $.extend(defaults, options); return this.each(function() { @@ -70,4 +72,4 @@ } }); -})(jQuery); \ No newline at end of file +})(jQuery);