mirror of https://github.com/acanas/swad-core.git
Version 20.33.3: Feb 22, 2021 Code refactoring in timeline related to forms.
This commit is contained in:
parent
9db2439bae
commit
ac2a4b5339
|
@ -553,7 +553,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 20.33.2 (2021-02-22)"
|
#define Log_PLATFORM_VERSION "SWAD 20.33.3 (2021-02-22)"
|
||||||
#define CSS_FILE "swad20.8.css"
|
#define CSS_FILE "swad20.8.css"
|
||||||
#define JS_FILE "swad20.6.2.js"
|
#define JS_FILE "swad20.6.2.js"
|
||||||
/*
|
/*
|
||||||
|
@ -601,6 +601,7 @@ TODO: DNI de un estudiante sale err
|
||||||
TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede.
|
TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede.
|
||||||
TODO: Salvador Romero Cortés: @acanas opción para editar posts
|
TODO: Salvador Romero Cortés: @acanas opción para editar posts
|
||||||
|
|
||||||
|
Version 20.33.3: Feb 22, 2021 Code refactoring in timeline related to forms. (304882 lines)
|
||||||
Version 20.33.2: Feb 22, 2021 Code refactoring in timeline related to forms. (304880 lines)
|
Version 20.33.2: Feb 22, 2021 Code refactoring in timeline related to forms. (304880 lines)
|
||||||
Version 20.33.1: Feb 22, 2021 Code refactoring in timeline related to forms. (304888 lines)
|
Version 20.33.1: Feb 22, 2021 Code refactoring in timeline related to forms. (304888 lines)
|
||||||
Version 20.33: Feb 21, 2021 New module swad_timeline_form. (304866 lines)
|
Version 20.33: Feb 21, 2021 New module swad_timeline_form. (304866 lines)
|
||||||
|
|
|
@ -790,7 +790,6 @@ static void TL_Com_RequestRemovalComment (struct TL_Timeline *Timeline)
|
||||||
extern const char *Txt_The_comment_no_longer_exists;
|
extern const char *Txt_The_comment_no_longer_exists;
|
||||||
extern const char *Txt_Do_you_really_want_to_remove_the_following_comment;
|
extern const char *Txt_Do_you_really_want_to_remove_the_following_comment;
|
||||||
struct TL_Com_Comment Com;
|
struct TL_Com_Comment Com;
|
||||||
bool ItsMe;
|
|
||||||
|
|
||||||
/***** Initialize image *****/
|
/***** Initialize image *****/
|
||||||
Med_MediaConstructor (&Com.Content.Media);
|
Med_MediaConstructor (&Com.Content.Media);
|
||||||
|
@ -801,12 +800,11 @@ static void TL_Com_RequestRemovalComment (struct TL_Timeline *Timeline)
|
||||||
|
|
||||||
if (Com.PubCod > 0)
|
if (Com.PubCod > 0)
|
||||||
{
|
{
|
||||||
ItsMe = Usr_ItsMe (Com.UsrCod);
|
if (Usr_ItsMe (Com.UsrCod)) // I am the author of this comment
|
||||||
if (ItsMe) // I am the author of this comment
|
|
||||||
{
|
{
|
||||||
/***** Show question and button to remove comment *****/
|
/***** Show question and button to remove comment *****/
|
||||||
/* Start alert */
|
/* Begin alert */
|
||||||
Ale_ShowAlertAndButton1 (Ale_QUESTION,Txt_Do_you_really_want_to_remove_the_following_comment);
|
TL_Frm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_comment);
|
||||||
|
|
||||||
/* Show comment */
|
/* Show comment */
|
||||||
TL_Com_WriteComment (Timeline,&Com,
|
TL_Com_WriteComment (Timeline,&Com,
|
||||||
|
|
|
@ -270,9 +270,14 @@ void TL_Frm_FormToShowHiddenComments (long NotCod,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/******************* End form to remove note / comment ***********************/
|
/********************** Form to remove note / comment ************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void TL_Frm_BeginAlertRemove (const char *QuestionTxt)
|
||||||
|
{
|
||||||
|
Ale_ShowAlertAndButton1 (Ale_QUESTION,QuestionTxt);
|
||||||
|
}
|
||||||
|
|
||||||
void TL_Frm_EndAlertRemove (struct TL_Timeline *Timeline,TL_Frm_Action_t Action,
|
void TL_Frm_EndAlertRemove (struct TL_Timeline *Timeline,TL_Frm_Action_t Action,
|
||||||
void (*FuncParams) (void *Args))
|
void (*FuncParams) (void *Args))
|
||||||
{
|
{
|
||||||
|
|
|
@ -87,6 +87,7 @@ void TL_Frm_FormToShowHiddenComments (long NotCod,
|
||||||
char IdComments[Frm_MAX_BYTES_ID + 1],
|
char IdComments[Frm_MAX_BYTES_ID + 1],
|
||||||
unsigned NumInitialComments);
|
unsigned NumInitialComments);
|
||||||
|
|
||||||
|
void TL_Frm_BeginAlertRemove (const char *QuestionTxt);
|
||||||
void TL_Frm_EndAlertRemove (struct TL_Timeline *Timeline,TL_Frm_Action_t Action,
|
void TL_Frm_EndAlertRemove (struct TL_Timeline *Timeline,TL_Frm_Action_t Action,
|
||||||
void (*FuncParams) (void *Args));
|
void (*FuncParams) (void *Args));
|
||||||
|
|
||||||
|
|
|
@ -1017,7 +1017,6 @@ static void TL_Not_RequestRemovalNote (struct TL_Timeline *Timeline)
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
extern const char *Txt_Do_you_really_want_to_remove_the_following_post;
|
extern const char *Txt_Do_you_really_want_to_remove_the_following_post;
|
||||||
struct TL_Not_Note Not;
|
struct TL_Not_Note Not;
|
||||||
bool ItsMe;
|
|
||||||
|
|
||||||
/***** Get data of note *****/
|
/***** Get data of note *****/
|
||||||
Not.NotCod = TL_Not_GetParamNotCod ();
|
Not.NotCod = TL_Not_GetParamNotCod ();
|
||||||
|
@ -1025,12 +1024,11 @@ static void TL_Not_RequestRemovalNote (struct TL_Timeline *Timeline)
|
||||||
|
|
||||||
if (Not.NotCod > 0)
|
if (Not.NotCod > 0)
|
||||||
{
|
{
|
||||||
ItsMe = Usr_ItsMe (Not.UsrCod);
|
if (Usr_ItsMe (Not.UsrCod)) // I am the author of this note
|
||||||
if (ItsMe) // I am the author of this note
|
|
||||||
{
|
{
|
||||||
/***** Show question and button to remove note *****/
|
/***** Show question and button to remove note *****/
|
||||||
/* Start alert */
|
/* Begin alert */
|
||||||
Ale_ShowAlertAndButton1 (Ale_QUESTION,Txt_Do_you_really_want_to_remove_the_following_post);
|
TL_Frm_BeginAlertRemove (Txt_Do_you_really_want_to_remove_the_following_post);
|
||||||
|
|
||||||
/* Show note */
|
/* Show note */
|
||||||
TL_Not_WriteNote (Timeline,&Not,
|
TL_Not_WriteNote (Timeline,&Not,
|
||||||
|
|
Loading…
Reference in New Issue