This commit is contained in:
Ray Schamp 2015-05-08 10:10:04 -04:00
parent fa65c81b39
commit cfb9aad71d

View file

@ -220,31 +220,6 @@ function getOrCreateFromTemplate(elementId, templateId, elementType, appendTo, w
return $element; return $element;
}; };
function enableOverlay(forZIndex) {
var overlayId = "modal-overlay";
var $overlay = $("#" + overlayId);
if (!$overlay.length) {
$overlay = $("<div></div>")
.attr("id", overlayId)
.appendTo("body")
.click(function(){
$(this).trigger("modal:exit");
});
}
$overlay.css({
position: "fixed",
display: "block",
"z-index": forZIndex - 1,
top: 0,
left: 0,
width: "100%",
height: "100%",
opacity: "0.8",
background: "black"
});
return $overlay;
}
function showModal(templateId) { function showModal(templateId) {
/* /*
* Copies the HTML referenced by data-template into a new element, * Copies the HTML referenced by data-template into a new element,