{#<div class="modal fade bd-example-modal-lg" id="mdl_default_modal" tabindex="-1" role="dialog"#}
{# aria-labelledby="exampleModalLongTitle"#}
{# aria-hidden="true">#}
{# <div class="modal-dialog modal-lg" role="document">#}
{# <div class="modal-content">#}
{# <div class="modal-header">#}
{# <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>#}
{# <button type="button" class="close" data-dismiss="modal" aria-label="Close">#}
{# <span aria-hidden="true">×</span>#}
{# </button>#}
{# </div>#}
{# <div class="modal-body">#}
{# ...#}
{# </div>#}
{# <div class="modal-footer">#}
{# <button type="button" class="btn btn-secondary mdl_close" data-dismiss="modal">Хаах</button>#}
{# <button type="button" class="btn btn-primary mdl_submit" onclick="return mdlModal.proceed()">#}
{# ХАДГАЛАХ#}
{# </button>#}
{# </div>#}
{# </div>#}
{# </div>#}
{#</div>#}
<div id="mdl_default_modal" class="modal" tabindex="-1">
<div class="modal-dialog modal-xl modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
{# <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">x</button>#}
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
</div>
</div>
</div>
<script src="{{ asset('asset/mdl/mdl-modal.js') }}" type="text/javascript"></script>
<script type="text/javascript">
var mdlModal;
var loader = $('.preloader');
$(document).ready(function () {
mdlModal = new MdlModal();
mdlModal.init({
modalId: "mdl_default_modal",
loader: loader,
responseHandler: function (response) {
processResponse(response);
}
});
});
function processResponse(response) {
console.log(response);
}
</script>