mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
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:
@@ -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");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user