f
This commit is contained in:
parent
2c7c064dd4
commit
2358c567ac
|
|
@ -697,6 +697,9 @@ body {
|
||||||
z-index: 1055 !important;
|
z-index: 1055 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal.show { z-index: 2000; }
|
||||||
|
.modal-backdrop.show { z-index: 1999; }
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
RESPONSIVE DESIGN
|
RESPONSIVE DESIGN
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
@ -708,7 +711,6 @@ body {
|
||||||
margin-left: var(--sidebar-collapsed);
|
margin-left: var(--sidebar-collapsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.nav-text,
|
.nav-text,
|
||||||
.nav-title,
|
.nav-title,
|
||||||
.nav-badge,
|
.nav-badge,
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ $activeChildId = $menuData['child'];
|
||||||
<link rel="manifest" href="<?= $racineWeb ?>manifest.json">
|
<link rel="manifest" href="<?= $racineWeb ?>manifest.json">
|
||||||
|
|
||||||
<!-- 4. VOS STYLES PERSONNALISÉS (en dernier pour qu'ils dominent) -->
|
<!-- 4. VOS STYLES PERSONNALISÉS (en dernier pour qu'ils dominent) -->
|
||||||
<link href="<?= $racineWeb ?>Bootstrap_new/css/style_office.css?ver=2026.01.03.01" rel="stylesheet">
|
<link href="<?= $racineWeb ?>Bootstrap_new/css/style_office.css?ver=2026.01.03.02" rel="stylesheet">
|
||||||
<link href="<?= $racineWeb ?>Bootstrap_new/css/ux_enhancements.css?ver=2025.12.21.02" rel="stylesheet">
|
<link href="<?= $racineWeb ?>Bootstrap_new/css/ux_enhancements.css?ver=2025.12.21.02" rel="stylesheet">
|
||||||
|
|
||||||
<!-- ============================================
|
<!-- ============================================
|
||||||
|
|
@ -681,34 +681,34 @@ $activeChildId = $menuData['child'];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
// 1) Pass initial: déplacer tous les modals existants sous <body>
|
// 1) Déplacer immédiatement tous les modals existants sous <body>
|
||||||
document.querySelectorAll('.modal').forEach(function (m) {
|
document.querySelectorAll('.modal').forEach(function (m) {
|
||||||
if (m.parentNode !== document.body) document.body.appendChild(m);
|
if (m.parentNode !== document.body) document.body.appendChild(m);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 2) Intercepter tous les clics sur triggers avant Bootstrap (capture)
|
// 2) Intercepter tous les clics sur triggers AVANT Bootstrap (phase capture)
|
||||||
document.addEventListener('click', function (e) {
|
document.addEventListener('click', function (e) {
|
||||||
const trigger = e.target.closest('[data-bs-toggle="modal"][data-bs-target]');
|
const trigger = e.target.closest('[data-bs-toggle="modal"][data-bs-target]');
|
||||||
if (!trigger) return;
|
if (!trigger) return;
|
||||||
const targetSelector = trigger.getAttribute('data-bs-target');
|
const targetSelector = trigger.getAttribute('data-bs-target');
|
||||||
const modal = document.querySelector(targetSelector);
|
const modal = document.querySelector(targetSelector);
|
||||||
if (modal && modal.parentNode !== document.body) {
|
if (modal && modal.parentNode !== document.body) {
|
||||||
document.body.appendChild(modal);
|
document.body.appendChild(modal);
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
// 3) Fallback: si un modal s'ouvre autrement, garantir le déplacement
|
// 3) Fallback: si un modal s'ouvre autrement, garantir le déplacement
|
||||||
document.addEventListener('show.bs.modal', function (event) {
|
document.addEventListener('show.bs.modal', function (event) {
|
||||||
const modal = event.target;
|
const modal = event.target;
|
||||||
if (modal && modal.parentNode !== document.body) {
|
if (modal && modal.parentNode !== document.body) {
|
||||||
document.body.appendChild(modal);
|
document.body.appendChild(modal);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user