make JS modal initialization more readable and slightly less clever
This commit is contained in:
parent
3a260804d9
commit
4ff472ead7
@ -1,5 +1,6 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
if (modal = document.querySelector('#modal-' + #{String modalId'})) {
|
var modal = document.querySelector('#modal-' + #{String modalId'});
|
||||||
|
if (modal) {
|
||||||
window.utils.setup('modal', modal);
|
window.utils.setup('modal', modal);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user