mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 06:01:15 +00:00
Fix: Six ajax modals had dead JS - DOMContentLoaded had already fired before their scripts were injected. New itflowReady() helper restores jQuery .ready() semantics. Fixes notification pagination, asset OS autocomplete, contact auth toggle, AI ticket summary, AI document template generation
This commit is contained in:
@@ -65,7 +65,8 @@ ob_start();
|
||||
</table>
|
||||
<div class="text-center mt-2">
|
||||
<button id="prev-btn" class="btn btn-sm btn-outline-secondary me-2"><i class="fas fa-caret-left"></i></button>
|
||||
<button id="next-btn" class="btn btn-sm btn-outline-secondary"><i class="fas fa-caret-right"></i></button>
|
||||
<span id="page-indicator" class="small text-muted mx-2"></span>
|
||||
<button id="next-btn" class="btn btn-sm btn-outline-secondary ms-2"><i class="fas fa-caret-right"></i></button>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="text-center text-secondary pt-3">
|
||||
@@ -94,7 +95,7 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
itflowReady(function () {
|
||||
var perPage = 8;
|
||||
var items = Array.from(document.querySelectorAll('.notification-item'));
|
||||
var totalItems = items.length;
|
||||
|
||||
Reference in New Issue
Block a user