test
This commit is contained in:
parent
345abc8dfa
commit
1befd492ce
|
|
@ -147,10 +147,19 @@ console.groupEnd();
|
|||
document.addEventListener('contextmenu', e => e.preventDefault());
|
||||
}
|
||||
|
||||
<?php
|
||||
// Assurez-vous que $activeParentId est correct pour Accueil
|
||||
if ($activeLink == 'Accueil' && ($activeParentId ?? '') != '0') {
|
||||
echo "console.warn('PHP: Correction activeParentId pour Accueil');\n";
|
||||
$activeParentId = '0';
|
||||
$activeChildId = null;
|
||||
}
|
||||
?>
|
||||
|
||||
// Variables globales
|
||||
window.appConfig = {
|
||||
activeParentId: '<?= $activeParentId ?? "0" ?>',
|
||||
activeChildId: '<?= $activeChildId ?? "0" ?>',
|
||||
activeChildId: '<?= $activeChildId ?? "" ?>',
|
||||
activeLink: '<?= $activeLink ?>',
|
||||
racineWeb: '<?= $racineWeb ?>',
|
||||
baseUrl: '<?= $racineWeb ?>',
|
||||
|
|
@ -163,14 +172,10 @@ console.groupEnd();
|
|||
};
|
||||
|
||||
// Vérification
|
||||
console.log('PHP: activeParentId =', '<?= $activeParentId ?>');
|
||||
console.log('PHP: activeLink =', '<?= $activeLink ?>');
|
||||
console.log('🔧 CONFIG CORRIGÉE:');
|
||||
console.log(' activeParentId:', window.appConfig.activeParentId);
|
||||
console.log(' activeLink:', window.appConfig.activeLink);
|
||||
|
||||
// CORRECTION FORCÉE IMMÉDIATE
|
||||
if (window.appConfig.activeLink === 'Accueil') {
|
||||
console.warn('🔧 Correction: Accueil forcé en menu 0 (était: ' + window.appConfig.activeParentId + ')');
|
||||
window.appConfig.activeParentId = '0';
|
||||
}
|
||||
|
||||
// Debug CSS loading
|
||||
console.log('[App] Configuration chargée:', window.appConfig);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user