master_template/public/assets/js/pages/modal.init.js
2024-06-10 18:06:58 +05:45

1 line
367 B
JavaScript

var varyingcontentModal=document.getElementById("varyingcontentModal");varyingcontentModal&&varyingcontentModal.addEventListener("show.bs.modal",function(t){var t=t.relatedTarget.getAttribute("data-bs-whatever"),e=varyingcontentModal.querySelector(".modal-title"),n=varyingcontentModal.querySelector(".modal-body input");e.textContent="New message to "+t,n.value=t});