22 lines
578 B
JavaScript
22 lines
578 B
JavaScript
var modal = document.getElementById("customModal");
|
|
|
|
function LoadCustomPartial(url) {
|
|
$.get(url, null, function (htmlPage) {
|
|
$("#CustomContentHtml").html(htmlPage);
|
|
const container = document.getElementById("ModalContent");
|
|
const forms = container.getElementsByTagName("form");
|
|
const newForm = forms[forms.length - 1];
|
|
openModal();
|
|
});
|
|
}
|
|
|
|
function openModal() {
|
|
modal.classList.add('show');
|
|
}
|
|
|
|
//window.onclick = function (event) {
|
|
// if (event.target === modal) {
|
|
// modal.classList.remove('show');
|
|
// }
|
|
//}
|