Commit 292552dc authored by ∞'s avatar 💻

Restore childmodal function

parent 8b890b85
......@@ -68,4 +68,16 @@ export default class extends Controller {
}
window.scrollTo(0, document.body.scrollHeight)
}
childmodal() {
var childmodal = this.element.querySelector('.childmodal')
this.modal.innerHTML = childmodal.innerHTML
if (childmodal.classList.contains('modal-fixed-footer')) {
this.modal.classList.add('modal-fixed-footer')
} else {
this.modal.classList.remove('modal-fixed-footer')
}
this.initmodal()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment