Version 22.50.2: Oct 19, 2022 Code refactoring related to dates.

This commit is contained in:
acanas 2022-10-19 22:38:16 +02:00
parent cc8b64cf3c
commit a7c0f6bc46
2 changed files with 10 additions and 10 deletions

View File

@ -61,7 +61,6 @@
/*********************************** TODO ************************************/
/*****************************************************************************/
// TODO: Víctor Cabrita Gómez, 2019-02-27: "Para cuando un tema oscuro de SWAD?"
// TODO: Is it necessary FileType in table "files"?
// TODO: When notifications are marked as seen, do it in a priori function
// TODO: Use the library http://fukuchi.org/works/qrencode/index.html.en instead Google QR
@ -606,10 +605,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.50.2 (2022-10-19)"
#define Log_PLATFORM_VERSION "SWAD 22.50.3 (2022-10-19)"
#define CSS_FILE "swad22.49.4.css"
#define JS_FILE "swad22.49.js"
/*
Version 22.50.3: Oct 19, 2022 Fixed bug in keys when playing matches. (333456 lines)
Version 22.50.2: Oct 19, 2022 Code refactoring related to dates. (333456 lines)
Version 22.50.1: Oct 19, 2022 Code refactoring related to dates. (333332 lines)
Version 22.50: Oct 19, 2022 Code refactoring related to dates. (333318 lines)

View File

@ -205,7 +205,7 @@ static const char *Mch_GetClassBorder (unsigned NumRow);
static void Mch_PutParamNumOpt (unsigned NumOpt);
static unsigned Mch_GetParamNumOpt (void);
static void Mch_PutBigButton (Act_Action_t NextAction,
static void Mch_PutBigButton (Act_Action_t NextAction,const char *Id,
long MchCod,const char *Icon,const char *Txt);
static void Mch_PutBigButtonHidden (const char *Icon);
static void Mch_PutBigButtonClose (void);
@ -2539,7 +2539,7 @@ static void Mch_PutMatchControlButtons (const struct Mch_Match *Match)
break;
default:
/* Put button to go back */
Mch_PutBigButton (ActBckMch,Match->MchCod,
Mch_PutBigButton (ActBckMch,"backward",Match->MchCod,
Mch_ICON_PREVIOUS,Txt_Go_back);
break;
}
@ -2549,7 +2549,7 @@ static void Mch_PutMatchControlButtons (const struct Mch_Match *Match)
HTM_DIV_Begin ("class=\"MCH_BUTTON_CENTER_CONT\"");
if (Match->Status.Playing) // Match is being played
/* Put button to pause match */
Mch_PutBigButton (ActPlyPauMch,Match->MchCod,
Mch_PutBigButton (ActPlyPauMch,"play_pause",Match->MchCod,
Mch_ICON_PAUSE,Txt_Pause);
else // Match is paused, not being played
{
@ -2557,7 +2557,7 @@ static void Mch_PutMatchControlButtons (const struct Mch_Match *Match)
{
case Mch_START: // Match just started, before first question
/* Put button to start playing match */
Mch_PutBigButton (ActPlyPauMch,Match->MchCod,
Mch_PutBigButton (ActPlyPauMch,"play_pause",Match->MchCod,
Mch_ICON_PLAY,Txt_Start);
break;
case Mch_END: // Match over
@ -2566,7 +2566,7 @@ static void Mch_PutMatchControlButtons (const struct Mch_Match *Match)
break;
default:
/* Put button to resume match */
Mch_PutBigButton (ActPlyPauMch,Match->MchCod,
Mch_PutBigButton (ActPlyPauMch,"play_pause",Match->MchCod,
Mch_ICON_PLAY,Txt_Resume);
}
}
@ -2579,7 +2579,7 @@ static void Mch_PutMatchControlButtons (const struct Mch_Match *Match)
Mch_PutBigButtonClose ();
else // Match not over
/* Put button to show answers */
Mch_PutBigButton (ActFwdMch,Match->MchCod,
Mch_PutBigButton (ActFwdMch,"forward",Match->MchCod,
Mch_ICON_NEXT,Txt_Go_forward);
HTM_DIV_End ();
@ -3264,11 +3264,11 @@ static unsigned Mch_GetParamNumOpt (void)
/*********************** Put a big button to do action ***********************/
/*****************************************************************************/
static void Mch_PutBigButton (Act_Action_t NextAction,
static void Mch_PutBigButton (Act_Action_t NextAction,const char *Id,
long MchCod,const char *Icon,const char *Txt)
{
/***** Begin form *****/
Frm_BeginForm (NextAction);
Frm_BeginFormId (NextAction,Id);
Mch_PutParamMchCod (MchCod);
/***** Put icon with link *****/