Consolidate asset modals to modals/asset removed ajax_ and _modal prefixes from file names and use new ajax-modal syntax

This commit is contained in:
johnnyq
2025-08-22 21:54:26 -04:00
parent 0b93d58a32
commit 15ba385398
32 changed files with 83 additions and 115 deletions

View File

@@ -272,12 +272,11 @@ $page_title = $row['document_name'];
?>
<div class="ml-2">
<a href="#"
data-toggle="ajax-modal"
<a class="ajax-modal" href="#"
data-modal-size="lg"
data-ajax-url="ajax/ajax_asset_details.php"
data-ajax-id="<?php echo $asset_id; ?>">
<?php echo $asset_name; ?></a>
data-modal-url="modals/asset/asset_details.php?id=<?= $asset_id ?>">
<?php echo $asset_name; ?>
</a>
<a class="confirm-link float-right" href="post.php?unlink_asset_from_document&asset_id=<?php echo $asset_id; ?>&document_id=<?php echo $document_id; ?>">
<i class="fas fa-fw fa-trash-alt text-secondary"></i>
</a>