Files
Backend-Api/ServiceHost/wwwroot/AssetsAdminNew/js/customModal.js
2025-03-09 21:52:06 +03:30

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');
// }
//}