Fixed leanModal bug that caused lots of overlays to be added.

This commit is contained in:
Bridger Maxwell
2012-03-28 14:20:08 -07:00
parent f95aa496fa
commit bb15d92381

View File

@@ -10,9 +10,12 @@
closeButton:'.modal_close'
}
var overlay = $("<div id='lean_overlay'></div>");
var overlay = $("#lean_overlay");
if (overlay.length == 0) {
overlay = $("<div id='lean_overlay'></div>");
$("body").append(overlay);
}
$("body").append(overlay);
options = $.extend(defaults, options);