mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 14:11:17 +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:
@@ -461,7 +461,7 @@ ob_start();
|
||||
|
||||
<!-- JSON Autocomplete / type ahead -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
itflowReady(function () {
|
||||
|
||||
var operatingSystems = <?= $json_os ?>;
|
||||
|
||||
|
||||
@@ -315,7 +315,7 @@ function generatePassword() {
|
||||
);
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
itflowReady(function () {
|
||||
function syncAuthForm(select) {
|
||||
var form = select.closest('.authForm');
|
||||
if (!form) {
|
||||
|
||||
@@ -351,7 +351,7 @@ function generatePassword() {
|
||||
);
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
itflowReady(function () {
|
||||
function syncAuthForm(select) {
|
||||
var form = select.closest('.authForm');
|
||||
if (!form) {
|
||||
|
||||
@@ -19,7 +19,7 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
itflowReady(function () {
|
||||
var target = document.getElementById('summaryContent');
|
||||
if (!target) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user