mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-13 12:59:21 +02:00
Housekeeping changes; fixed #216
This commit is contained in:
parent
334ac43b72
commit
0f24051b50
2 changed files with 8 additions and 8 deletions
|
@ -530,7 +530,7 @@
|
||||||
|
|
||||||
// Keep the modal open when there's an error
|
// Keep the modal open when there's an error
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance._isShown = true;
|
modalInstance._isShown = true;
|
||||||
}
|
}
|
||||||
|
@ -552,7 +552,7 @@
|
||||||
// ✅ Only close modal if form submission is successful
|
// ✅ Only close modal if form submission is successful
|
||||||
if (data.identifier) {
|
if (data.identifier) {
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance.hide();
|
modalInstance.hide();
|
||||||
}
|
}
|
||||||
|
@ -571,7 +571,7 @@
|
||||||
|
|
||||||
// ❌ Prevent modal from closing on error
|
// ❌ Prevent modal from closing on error
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance._isShown = true; // Keep modal open
|
modalInstance._isShown = true; // Keep modal open
|
||||||
}
|
}
|
||||||
|
@ -631,7 +631,7 @@
|
||||||
// Close the modal
|
// Close the modal
|
||||||
let modalElement = document.getElementById("contactModal");
|
let modalElement = document.getElementById("contactModal");
|
||||||
if (modalElement) {
|
if (modalElement) {
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance.hide();
|
modalInstance.hide();
|
||||||
}
|
}
|
||||||
|
|
|
@ -664,7 +664,7 @@
|
||||||
|
|
||||||
// Keep the modal open when there's an error
|
// Keep the modal open when there's an error
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance._isShown = true;
|
modalInstance._isShown = true;
|
||||||
}
|
}
|
||||||
|
@ -686,7 +686,7 @@
|
||||||
// ✅ Only close modal if form submission is successful
|
// ✅ Only close modal if form submission is successful
|
||||||
if (data.identifier) {
|
if (data.identifier) {
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance.hide();
|
modalInstance.hide();
|
||||||
}
|
}
|
||||||
|
@ -705,7 +705,7 @@
|
||||||
|
|
||||||
// ❌ Prevent modal from closing on error
|
// ❌ Prevent modal from closing on error
|
||||||
let modalElement = document.getElementById("addContactModal");
|
let modalElement = document.getElementById("addContactModal");
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance._isShown = true; // Keep modal open
|
modalInstance._isShown = true; // Keep modal open
|
||||||
}
|
}
|
||||||
|
@ -765,7 +765,7 @@
|
||||||
// Close the modal
|
// Close the modal
|
||||||
let modalElement = document.getElementById("contactModal");
|
let modalElement = document.getElementById("contactModal");
|
||||||
if (modalElement) {
|
if (modalElement) {
|
||||||
let modalInstance = bootstrap.Modal.getInstance(modalElement);
|
let modalInstance = tabler.Modal.getInstance(modalElement);
|
||||||
if (modalInstance) {
|
if (modalInstance) {
|
||||||
modalInstance.hide();
|
modalInstance.hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue