diff --git a/admin/modals/ai/ai_model_edit.php b/admin/modals/ai/ai_model_edit.php
index 79db1219..87c5bbc2 100644
--- a/admin/modals/ai/ai_model_edit.php
+++ b/admin/modals/ai/ai_model_edit.php
@@ -1,6 +1,6 @@
Tell your admin: Your role does not have admin access.");
@@ -76,4 +76,4 @@ ob_start();
-
+
+
-
-
- $content]);
- exit();
-?>
\ No newline at end of file
diff --git a/includes/modal_header.php b/includes/modal_header.php
index 74f3848c..695f098a 100644
--- a/includes/modal_header.php
+++ b/includes/modal_header.php
@@ -1,8 +1,8 @@
'ID missing.']);
-// exit;
-//}
diff --git a/js/ajax_modal.js b/js/ajax_modal.js
index 5a70dd93..a4d1b2a1 100644
--- a/js/ajax_modal.js
+++ b/js/ajax_modal.js
@@ -3,16 +3,13 @@
/* Example Triggering -->
*/
-// New Way
$(document).on('click', '.ajax-modal', function (e) {
e.preventDefault();
@@ -66,58 +63,4 @@ $(document).on('click', '.ajax-modal', function (e) {
console.error('Modal AJAX Error:', status, error);
}
});
-});
-
-// OLD Way
-$(document).on('click', '[data-toggle="ajax-modal"]', function (e) {
- e.preventDefault();
-
- // Get the URL and ID from the element's data attributes.
- var $trigger = $(this);
- var ajaxUrl = $trigger.data('ajax-url');
- var ajaxId = $trigger.data('ajax-id');
- var modalSize = $trigger.data('modal-size') || 'md';
-
- // Make the AJAX call to fetch modal content.
- $.ajax({
- url: ajaxUrl,
- method: 'GET',
- data: { id: ajaxId },
- dataType: 'json',
- success: function (response) {
- if (response.error) {
- alert(response.error);
- return;
- }
-
- // Create a modal ID by appending the ajaxId.
- var modalId = 'ajaxModal_' + ajaxId + '_' + new Date().getTime();
-
- // Remove any existing modal with this ID.
- $('#' + modalId).remove();
-
- // Build the modal HTML using the returned title and content.
- var modalHtml =
- '
' +
- '
' +
- '
'
- + response.content +
- '
' +
- '
' +
- '
';
-
- // Append the modal to the body and show it.
- $('.content-wrapper').append(modalHtml);
- var $modal = $('#' + modalId);
- $modal.modal('show');
-
- // Remove the modal from the DOM once it's hidden.
- $modal.on('hidden.bs.modal', function () {
- $(this).remove();
- });
- },
- error: function () {
- alert('Error loading modal content.');
- }
- });
-});
+});
\ No newline at end of file
diff --git a/user/modals/account/account_edit.php b/user/modals/account/account_edit.php
index 06162efc..54e7f8f7 100644
--- a/user/modals/account/account_edit.php
+++ b/user/modals/account/account_edit.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/asset/asset_link_document.php b/user/modals/asset/asset_link_document.php
index a894a49e..d90b15ba 100644
--- a/user/modals/asset/asset_link_document.php
+++ b/user/modals/asset/asset_link_document.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/asset/asset_link_file.php b/user/modals/asset/asset_link_file.php
index 95f2e51d..31d47bc9 100644
--- a/user/modals/asset/asset_link_file.php
+++ b/user/modals/asset/asset_link_file.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/asset/asset_link_service.php b/user/modals/asset/asset_link_service.php
index fecb87f4..f569b458 100644
--- a/user/modals/asset/asset_link_service.php
+++ b/user/modals/asset/asset_link_service.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/contact/contact_link_asset.php b/user/modals/contact/contact_link_asset.php
index ca0b8807..1db6dbe8 100644
--- a/user/modals/contact/contact_link_asset.php
+++ b/user/modals/contact/contact_link_asset.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/contact/contact_link_credential.php b/user/modals/contact/contact_link_credential.php
index 20905205..a4a8a4d4 100644
--- a/user/modals/contact/contact_link_credential.php
+++ b/user/modals/contact/contact_link_credential.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/contact/contact_link_document.php b/user/modals/contact/contact_link_document.php
index e5df893a..ac5f54c7 100644
--- a/user/modals/contact/contact_link_document.php
+++ b/user/modals/contact/contact_link_document.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/contact/contact_link_file.php b/user/modals/contact/contact_link_file.php
index 3cdd4400..2cb882c2 100644
--- a/user/modals/contact/contact_link_file.php
+++ b/user/modals/contact/contact_link_file.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/contact/contact_note_add.php b/user/modals/contact/contact_note_add.php
index 72a5d4b8..1b38d210 100644
--- a/user/modals/contact/contact_note_add.php
+++ b/user/modals/contact/contact_note_add.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/expense/expense_edit.php b/user/modals/expense/expense_edit.php
index 9fa98113..059cfe66 100644
--- a/user/modals/expense/expense_edit.php
+++ b/user/modals/expense/expense_edit.php
@@ -1,6 +1,6 @@
diff --git a/user/modals/expense/expense_refund.php b/user/modals/expense/expense_refund.php
index c1169452..e6e89c9f 100644
--- a/user/modals/expense/expense_refund.php
+++ b/user/modals/expense/expense_refund.php
@@ -1,6 +1,6 @@