mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-24 00:01:03 +02:00
Version18.87.1
This commit is contained in:
parent
03c1190183
commit
360cb0aaca
|
@ -444,7 +444,7 @@ Lo de mutear anuncios, en principio prefiero hacer una opci
|
||||||
// TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes.
|
// TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes.
|
||||||
|
|
||||||
// TODO: Change in usability of Announcements of exams, suggested by Javier Fernández Baldomero.
|
// TODO: Change in usability of Announcements of exams, suggested by Javier Fernández Baldomero.
|
||||||
// TODO: Al pulsar sobre una convocatoria de examen / aviso --> ir a la sección de esa convocatoria/aviso en lugar de mostrarlo repetido y destacado arriba
|
// TODO: Al pulsar sobre una convocatoria de examen --> ir a la sección de esa convocatoria/aviso en lugar de mostrarlo repetido y destacado arriba
|
||||||
|
|
||||||
// TODO: Allow timeline posting only for users belonging to courses or admins to avoid user who create accounts only to post
|
// TODO: Allow timeline posting only for users belonging to courses or admins to avoid user who create accounts only to post
|
||||||
|
|
||||||
|
@ -469,10 +469,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.87 (2019-03-24)"
|
#define Log_PLATFORM_VERSION "SWAD 18.87.1 (2019-03-24)"
|
||||||
#define CSS_FILE "swad18.87.css"
|
#define CSS_FILE "swad18.87.css"
|
||||||
#define JS_FILE "swad18.85.js"
|
#define JS_FILE "swad18.85.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.87.1: Mar 24, 2019 Code refactoring in notices. (241011 lines)
|
||||||
Version 18.87: Mar 24, 2019 Change in usability of notices. (240997 lines)
|
Version 18.87: Mar 24, 2019 Change in usability of notices. (240997 lines)
|
||||||
Version 18.86.3: Mar 24, 2019 Optimization in suggestion of users to follow. (240965 lines)
|
Version 18.86.3: Mar 24, 2019 Optimization in suggestion of users to follow. (240965 lines)
|
||||||
Version 18.86.2: Mar 24, 2019 Optimization in suggestion of users to follow. (240935 lines)
|
Version 18.86.2: Mar 24, 2019 Optimization in suggestion of users to follow. (240935 lines)
|
||||||
|
|
|
@ -84,6 +84,9 @@ static void Not_UpdateNumUsrsNotifiedByEMailAboutNotice (long NotCod,unsigned Nu
|
||||||
static void Not_PutParams (void);
|
static void Not_PutParams (void);
|
||||||
static long Not_GetParamNotCod (void);
|
static long Not_GetParamNotCod (void);
|
||||||
|
|
||||||
|
static void Not_SetNotCodToEdit (long NotCod);
|
||||||
|
static long Not_GetNotCodToEdit (void);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************************** Write a new notice ****************************/
|
/***************************** Write a new notice ****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -296,7 +299,7 @@ void Not_RequestRemNotice (void)
|
||||||
Not_GetDataAndShowNotice (NotCod);
|
Not_GetDataAndShowNotice (NotCod);
|
||||||
|
|
||||||
/* End alert */
|
/* End alert */
|
||||||
Gbl.CurrentCrs.Notices.NotCod = NotCod; // To put parameters
|
Not_SetNotCodToEdit (NotCod); // To be used as parameter
|
||||||
Ale_ShowAlertAndButton2 (ActRemNot,NULL,NULL,Not_PutParams,
|
Ale_ShowAlertAndButton2 (ActRemNot,NULL,NULL,Not_PutParams,
|
||||||
Btn_REMOVE_BUTTON,Txt_Remove);
|
Btn_REMOVE_BUTTON,Txt_Remove);
|
||||||
|
|
||||||
|
@ -662,7 +665,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
{
|
{
|
||||||
if (Not_CheckIfICanEditNotices ())
|
if (Not_CheckIfICanEditNotices ())
|
||||||
{
|
{
|
||||||
Gbl.CurrentCrs.Notices.NotCod = NotCod; // To put parameters
|
Not_SetNotCodToEdit (NotCod); // To be used as parameter
|
||||||
|
|
||||||
/***** Put form to remove announcement *****/
|
/***** Put form to remove announcement *****/
|
||||||
Ico_PutContextualIconToRemove (ActReqRemNot,Not_PutParams);
|
Ico_PutContextualIconToRemove (ActReqRemNot,Not_PutParams);
|
||||||
|
@ -745,7 +748,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
|
|
||||||
/* Put form to view full notice */
|
/* Put form to view full notice */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||||
Gbl.CurrentCrs.Notices.NotCod = NotCod; // To put parameters
|
Not_SetNotCodToEdit (NotCod); // To be used as parameter
|
||||||
Lay_PutContextualLinkOnlyIcon (ActSeeOneNot,Anchor,Not_PutParams,
|
Lay_PutContextualLinkOnlyIcon (ActSeeOneNot,Anchor,Not_PutParams,
|
||||||
"ellipsis-h.svg",
|
"ellipsis-h.svg",
|
||||||
Txt_See_full_notice);
|
Txt_See_full_notice);
|
||||||
|
@ -1025,7 +1028,7 @@ unsigned Not_GetNumNoticesDeleted (Sco_Scope_t Scope,unsigned *NumNotif)
|
||||||
|
|
||||||
static void Not_PutParams (void)
|
static void Not_PutParams (void)
|
||||||
{
|
{
|
||||||
Not_PutHiddenParamNotCod (Gbl.CurrentCrs.Notices.NotCod);
|
Not_PutHiddenParamNotCod (Not_GetNotCodToEdit ());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1046,3 +1049,17 @@ static long Not_GetParamNotCod (void)
|
||||||
/***** Get notice code *****/
|
/***** Get notice code *****/
|
||||||
return Par_GetParToLong ("NotCod");
|
return Par_GetParToLong ("NotCod");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/********** Set/get code of a notice to be removed/enable/disable ************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Not_SetNotCodToEdit (long NotCod)
|
||||||
|
{
|
||||||
|
Gbl.CurrentCrs.Notices.NotCod = NotCod;
|
||||||
|
}
|
||||||
|
|
||||||
|
static long Not_GetNotCodToEdit (void)
|
||||||
|
{
|
||||||
|
return Gbl.CurrentCrs.Notices.NotCod;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user