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

@@ -48,22 +48,14 @@ $document_updated_at = nullable_htmlentities($row['document_updated_at']);
</button>
</div>
</div>
<div class="card-body" id="formatTables">
<div class="card-body prettyContent">
<?php echo $document_content; ?>
</div>
</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
require_once("document_template_edit_modal.php");
require_once("footer.php");