Replaced saturday and sunday by weekend in planning

This commit is contained in:
keplyx 2019-06-13 13:54:15 +02:00
parent cc0da3590f
commit 1fd533363c

View file

@ -14,8 +14,7 @@ let dayNames =
'Mercredi',
'Jeudi',
'Vendredi',
'Samedi',
'Dimanche'];
'Weekend',];
$(document).ready(function () {
generateTable();
@ -60,7 +59,7 @@ function clicked($elem){
function generateTable() {
tableWrapper.html(''); // Reset the table
generateHours();
for (let i = 1; i <= 7; i++) { // Iterate over the days
for (let i = 1; i <= 6; i++) { // Iterate over the days
tableWrapper.append('<div class="day-column" id="day_' + i + '"><div class="planning-header">' + dayNames[i] + '</div></div>');
let $dayColumn = $('#day_'+i);
getDayActivities(i, function (data) {