Theme Fixes for adminlte 4

This commit is contained in:
johnnyq
2026-08-14 14:11:13 -04:00
parent e6da3fd0e3
commit 0fe6d51bdb
12 changed files with 200 additions and 35 deletions

View File

@@ -20,7 +20,7 @@ $(document).on('click', '.ajax-modal', function (e) {
<div id="modal-loading-spinner" class="text-center p-5">
<i class="fas fa-spinner fa-spin fa-2x text-muted"></i>
</div>`;
$('.content-wrapper').append(loadingSpinner);
$('.app-main').append(loadingSpinner);
// Make AJAX request
$.ajax({
@@ -44,9 +44,9 @@ $(document).on('click', '.ajax-modal', function (e) {
</div>
</div>`;
$('.content-wrapper').append(modalHtml);
$('.app-main').append(modalHtml);
const $modal = $('#' + modalId);
$modal.modal('show');
bootstrap.Modal.getOrCreateInstance($modal[0]).show();
$modal.on('hidden.bs.modal', function () {
$(this).remove();