From c27917c6a64edeb9f0aed01311b9171f3bdd1088 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 20 Sep 2022 14:21:36 +0200 Subject: [PATCH] Version 22.12.3: Sep 20, 2022 Fixed bug in JavaScript related to dates. --- swad_changelog.h | 3 ++- swad_layout.c | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index ee4d598de..08fe168ae 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate TODO: Attach pdf files in multimedia. */ -#define Log_PLATFORM_VERSION "SWAD 22.12.2 (2022-09-20)" +#define Log_PLATFORM_VERSION "SWAD 22.12.3 (2022-09-20)" #define CSS_FILE "swad22.7.css" #define JS_FILE "swad21.100.js" /* + Version 22.12.3: Sep 20, 2022 Fixed bug in JavaScript related to dates. (331098 lines) Version 22.12.2: Sep 20, 2022 Changes in behaviour of program items. (331097 lines) Version 22.12.1: Sep 20, 2022 Changes in behaviour of program items. (331015 lines) Version 22.12: Sep 20, 2022 Links to marks file in program. (330985 lines) diff --git a/swad_layout.c b/swad_layout.c index 8bbd4b327..ae8fd6a6b 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -515,6 +515,17 @@ static void Lay_WriteScripts (void) /***** Write script to initialize variables used to draw dates *****/ HTM_SCRIPT_Begin (NULL,NULL); + HTM_Txt ("\tvar DAYS = ["); + for (DayOfWeek = 0; + DayOfWeek < 7; + DayOfWeek++) + { + if (DayOfWeek) + HTM_Comma (); + HTM_TxtF ("'%s'",Txt_DAYS[DayOfWeek]); + } + HTM_Txt ("];\n"); + HTM_Txt ("\tvar DAYS2 = ["); for (DayOfWeek = 0; DayOfWeek < 7; @@ -549,17 +560,6 @@ static void Lay_WriteScripts (void) /***** Write script to initialize variables used to draw months *****/ HTM_SCRIPT_Begin (NULL,NULL); - HTM_Txt ("\tvar DAYS = ["); - for (DayOfWeek = 0; - DayOfWeek < 7; - DayOfWeek++) - { - if (DayOfWeek) - HTM_Comma (); - HTM_TxtF ("'%s'",Txt_DAYS[DayOfWeek]); - } - HTM_Txt ("];\n"); - HTM_Txt ("\tvar STR_EXAM = '"); HTM_TxtF (Txt_Exam_of_X,Gbl.Hierarchy.Crs.FullName); HTM_Txt ("';\n");