From c8b3b0cf649f18a5239ff0a83fe3ec1da57f9b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 28 Dec 2015 01:39:58 +0100 Subject: [PATCH] Version 15.74.8 --- swad_changelog.h | 3 ++- swad_course.c | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index c3a1c9adc..20ced81fd 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -114,12 +114,13 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.74.7 (2015-12-26)" +#define Log_PLATFORM_VERSION "SWAD 15.74.8 (2015-12-28)" #define CSS_FILE "swad15.74.3.css" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.74.8: Dec 26, 2015 "Course" is moved to the top of the menu used to go directly to my courses. (187564 lines) Version 15.74.7: Dec 26, 2015 Changes in small icons. (187563 lines) Version 15.74.6: Dec 26, 2015 Reply icon is shown without text. (187562 lines) Version 15.74.5: Dec 26, 2015 Text in link to remove messages is now shorter. diff --git a/swad_course.c b/swad_course.c index a4d9ebe9a..234d3ad97 100644 --- a/swad_course.c +++ b/swad_course.c @@ -1092,6 +1092,14 @@ void Crs_WriteSelectorMyCourses (void) " onchange=\"document.getElementById('%s').submit();\">", Gbl.FormId); + /***** Write an option when no course selected *****/ + if (Gbl.CurrentCrs.Crs.CrsCod <= 0) + fprintf (Gbl.F.Out,"", + Txt_Course); + if (Gbl.Usrs.Me.MyCourses.Num) { /***** Write an option for each of my courses *****/ @@ -1141,13 +1149,6 @@ void Crs_WriteSelectorMyCourses (void) Gbl.CurrentCrs.Crs.ShortName); } } - else - /***** Write an option with no course selected *****/ - fprintf (Gbl.F.Out,"", - Txt_Course); /***** End form *****/ fprintf (Gbl.F.Out,"");