mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 16:12:18 -05:00
17 lines
477 B
JavaScript
17 lines
477 B
JavaScript
export function FormValid(formId) {
|
|
let form = document.getElementById(formId);
|
|
return form.checkValidity();
|
|
}
|
|
|
|
export function CloseModal(modalId) {
|
|
bootstrap.Modal.getOrCreateInstance('#' + modalId)?.hide();
|
|
}
|
|
|
|
export function OpenModal(modalId) {
|
|
bootstrap.Modal.getOrCreateInstance('#' + modalId)?.show();
|
|
}
|
|
|
|
export function ShowToast(toastId) {
|
|
const toastBootstrap = bootstrap.Toast.getOrCreateInstance('#' + toastId);
|
|
toastBootstrap?.show();
|
|
} |