mirror of
https://git.topisto.net/tibo/template.git
synced 2026-03-31 17:19:10 +00:00
commit 20240914
This commit is contained in:
@@ -130,12 +130,15 @@
|
||||
window.scrollTo(0, element.offsetHeight + 1);
|
||||
}
|
||||
|
||||
function headerIsVisible(flagVisible) {
|
||||
setLogoVisiblity(!flagVisible);
|
||||
if (!flagVisible) gotoTop();
|
||||
function headerIsNowVisible(header) {
|
||||
setLogoVisiblity(false);
|
||||
}
|
||||
|
||||
function synthesisTopIsNowVisible(entry) {
|
||||
function headerIsNowInvisible(header) {
|
||||
setLogoVisiblity(true);
|
||||
}
|
||||
|
||||
function synthesisIsNowVisible(entry) {
|
||||
|
||||
setDatagridHeadSticky(false);
|
||||
setDataGridFootSticky(false);
|
||||
@@ -159,11 +162,13 @@
|
||||
|
||||
function initDatagrid()
|
||||
{
|
||||
let fonctionAffichageDataGrid = datagrid_hooks['random'];
|
||||
datagridLoading();
|
||||
fonctionAffichageDataGrid();
|
||||
}
|
||||
|
||||
|
||||
function afficher_synthese(mode) {
|
||||
function initSynthese(mode) {
|
||||
let synthesis_body = document.querySelector('#synthesis_body');
|
||||
if (synthesis_body) {
|
||||
synthesis_body.innerHTML='';
|
||||
@@ -175,7 +180,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function afficher_footer(mode) {
|
||||
function initFooter(mode) {
|
||||
let footer_body = document.querySelector('footer');
|
||||
if (footer_body) {
|
||||
footer_body.innerHTML='';
|
||||
@@ -188,46 +193,15 @@
|
||||
}
|
||||
|
||||
function activeMenu(element) {
|
||||
datagridEmptyLines(50);
|
||||
|
||||
activeMode(element.innerText);
|
||||
|
||||
gotoTop();
|
||||
activeMode(element.innerText);
|
||||
}
|
||||
|
||||
function modeToAffichage(mode)
|
||||
{
|
||||
let retour='taches';
|
||||
switch (mode) {
|
||||
case 'Releases':
|
||||
retour='releases';
|
||||
break;
|
||||
case 'Hollidays':
|
||||
retour='feries';
|
||||
break;
|
||||
case 'Rendez-Vous':
|
||||
retour='rdv';
|
||||
break;
|
||||
case 'Rendez-Vous':
|
||||
retour='rdv';
|
||||
break;
|
||||
case 'Items':
|
||||
retour='items';
|
||||
break;
|
||||
case 'Project':
|
||||
retour='prestations';
|
||||
break;
|
||||
default:
|
||||
case 'Tasks':
|
||||
retour='taches';
|
||||
break;
|
||||
}
|
||||
return retour;
|
||||
}
|
||||
|
||||
|
||||
function activeMode(mode) {
|
||||
setFilAriane(['Home', mode]);
|
||||
initDatagrid();
|
||||
setFilAriane(['Home']);
|
||||
if (mode != 'Home') setFilAriane(['Home', mode]);
|
||||
initDatagrid(mode);
|
||||
initSynthese(mode);
|
||||
initFooter(mode);
|
||||
}
|
||||
|
||||
// UI
|
||||
@@ -237,4 +211,4 @@
|
||||
setContexteValeur('user', 'Anonymous');
|
||||
|
||||
// GO !
|
||||
activeMode('Menu1');
|
||||
activeMode('Home');
|
||||
|
||||
Reference in New Issue
Block a user