From 464b62c2c5f8aad794c0ee252ace7f976338db0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sat, 26 Oct 2019 13:21:02 +0200 Subject: [PATCH] Version19.44.4 --- swad_alert.c | 6 +++--- swad_changelog.h | 3 ++- swad_course.c | 10 ++++++---- swad_layout.c | 2 -- swad_tab.c | 8 ++++---- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/swad_alert.c b/swad_alert.c index 34d144ac8..606227e4f 100644 --- a/swad_alert.c +++ b/swad_alert.c @@ -405,14 +405,14 @@ static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Tx Lay_WriteStartOfPage (); /***** Begin box *****/ - fprintf (Gbl.F.Out,""); + else + HTM_DIV_Begin ("class=\"CM\""); HTM_DIV_Begin ("class=\"ALERT\""); /***** Icon to close the alert *****/ diff --git a/swad_changelog.h b/swad_changelog.h index d08527d37..237c36138 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -487,13 +487,14 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.44.3 (2019-10-26)" +#define Log_PLATFORM_VERSION "SWAD 19.44.4 (2019-10-26)" #define CSS_FILE "swad19.44.3.css" #define JS_FILE "swad19.39.js" /* // TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.) // TODO: Impedir la creación y edición de proyectos si no son editables. + Version 19.44.4: Oct 26, 2019 Fixed bug in HTML divs. (246370 lines) Version 19.44.3: Oct 26, 2019 Code refactoring in HTML lists. (246369 lines) Version 19.44.2: Oct 26, 2019 Changes in layout. (246318 lines) Version 19.44.1: Oct 26, 2019 Remove course from project configuration when removing course. (246284 lines) diff --git a/swad_course.c b/swad_course.c index 14c0d49d2..4d5522210 100644 --- a/swad_course.c +++ b/swad_course.c @@ -587,8 +587,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void) /***** Write link to platform *****/ Highlight = (Gbl.Hierarchy.Cty.CtyCod <= 0); - fprintf (Gbl.F.Out,"
  • ",Highlight ? ClassHighlight : - ClassNormal); + fprintf (Gbl.F.Out,"
  • ", + Highlight ? ClassHighlight : + ClassNormal); Frm_StartForm (ActMyCrs); Cty_PutParamCtyCod (-1L); Frm_LinkFormSubmit (Txt_System, @@ -622,8 +623,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void) /***** Write link to country *****/ Highlight = (Gbl.Hierarchy.Ins.InsCod <= 0 && Gbl.Hierarchy.Cty.CtyCod == Cty.CtyCod); - fprintf (Gbl.F.Out,"
  • ",Highlight ? ClassHighlight : - ClassNormal); + fprintf (Gbl.F.Out,"
  • ", + Highlight ? ClassHighlight : + ClassNormal); IsLastItemInLevel[1] = (NumCty == NumCtys - 1); Lay_IndentDependingOnLevel (1,IsLastItemInLevel); Frm_StartForm (ActMyCrs); diff --git a/swad_layout.c b/swad_layout.c index 7ea737b98..42c0cf444 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -159,8 +159,6 @@ void Lay_WriteStartOfPage (void) // in httpd.conf to enable meta tag fprintf (Gbl.F.Out,"\n" "\n" -// "\n" -// "\n" "\n" "\n" ""); + if (NumTab == Gbl.Action.Tab) + HTM_DIV_Begin (NULL); // This div must be present even in current tab in order to render properly the tab + else + HTM_DIV_Begin ("class=\"class=\"ICO_HIGHLIGHT\""); Frm_StartForm (ActMnu); Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) NumTab);