Update and move pretty tables function to a seperate js file and also add img-fluid to <img> tags so images dont run off the page and also update ticket details page with prettyContent function

This commit is contained in:
johnnyq
2023-09-26 14:22:58 -04:00
parent 1a5cd14208
commit 51489c2420
4 changed files with 21 additions and 27 deletions

View File

@@ -66,7 +66,7 @@ $document_parent = intval($row['document_parent']);
<?php } ?>
</div>
</div>
<div class="card-body" id="formatTables">
<div class="card-body prettyContent">
<?php echo $document_content; ?>
</div>
</div>
@@ -285,14 +285,7 @@ $document_parent = intval($row['document_parent']);
</div>
<script>
document.addEventListener("DOMContentLoaded", function(){
let tables = document.querySelectorAll('div#formatTables');
tables.forEach(function(table){
table.classList.add('table');
});
});
</script>
<script src="js/pretty_content.js"></script>
<?php
@@ -304,5 +297,3 @@ require_once("client_document_link_software_modal.php");
require_once("client_document_link_vendor_modal.php");
require_once("share_modal.php");
require_once("footer.php");
?>