Forums » beCPG Project » Use »
changing the weekend from staurday/sunday to friday/saturday
Ajouté par Miro Moricz il y a plus de 7 ans
Dear All,
Would you please let me know if it is possible to change the weekend days from the Saturday-Sunday to Friday-Saturday, so the gant view will show and color that way.
Appreciate your assistance,
Miro.
Réponses (4)
RE: changing the weekend from staurday/sunday to friday/saturday - Ajouté par Matthieu Laborie il y a environ 7 ans
Dear Miro,
Right no it's not possible to change the weekend days, it will need to do some evolution on the software.
It's something you need by project ? Or for all your project ?
Regards
RE: changing the weekend from staurday/sunday to friday/saturday - Ajouté par Miro Moricz il y a environ 7 ans
Dear Matthieu,
I would need for all my projects globally.
Once it is changed it will stay like that.
Thanks,
Miro.
RE: changing the weekend from staurday/sunday to friday/saturday - Ajouté par Matthieu Laborie il y a environ 7 ans
Hi,
The simplest way to do it, is to override jsgantt.js into your project and change the code in charge to apply css for week-end.
You can also apply for enterprise version and we will make it configurable for you.
Regards
RE: changing the weekend from staurday/sunday to friday/saturday - Ajouté par Miro Moricz il y a environ 7 ans
Hi Matthieu,
I have modified the code on line 1593.
From:
...
if (vTmpDate.getDay() % 6 === 0)
...
To:
...
if (vTmpDate.getDay() === 5 || vTmpDate.getDay() === 6)
...
also updated the minified version of the same jsgantt.js file.
Now on the gantt charts I see firday and saturday colored as weekend.
We are using the open version of it as we are testing alfresco itself.
Thanks for the great help,
Miro.