mirror of
https://github.com/itflow-org/itflow
synced 2026-03-05 05:14:51 +00:00
Added data-toggle='ajax-modal' to trigger the ajax modal instead, also added an ajax header and and footer to dedup code
This commit is contained in:
12
includes/ajax_footer.php
Normal file
12
includes/ajax_footer.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<script>// Initialize Select2 Elements
|
||||
$('.select2').select2({
|
||||
theme: 'bootstrap4',
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
|
||||
// Return the title and content as a JSON response
|
||||
echo json_encode(['title' => $title, 'content' => $content]);
|
||||
?>
|
||||
Reference in New Issue
Block a user