13 lines
398 B
JavaScript
13 lines
398 B
JavaScript
document.addEventListener('DOMContentLoaded', () => {
|
|
const toastElement = document.getElementById('appToast');
|
|
if (toastElement && window.bootstrap) {
|
|
const toast = new bootstrap.Toast(toastElement);
|
|
toast.show();
|
|
}
|
|
|
|
const invalidField = document.querySelector('.is-invalid');
|
|
if (invalidField) {
|
|
invalidField.focus({ preventScroll: false });
|
|
}
|
|
});
|