Version 18.51

This commit is contained in:
Antonio Cañas Vargas 2019-02-19 10:28:29 +01:00
parent 9a6a9b83b8
commit f91d39f163
6 changed files with 19 additions and 13 deletions

View File

@ -638,7 +638,7 @@ function readOldTimelineData () {
timeline.appendChild(oldTimeline.firstChild);
}
if (countOldTimeline < 20) // Set to Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW
if (countOldTimeline < RefreshParamMaxOldPubsToGetAndShow) // Set to Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW
// No more old publishings
document.getElementById("view_old_posts_container").style.display = 'none';
else {

View File

@ -1579,7 +1579,7 @@ typedef signed int Act_Action_t; // Must be a signed type, because -1 is used to
#define ActShoLftCol (ActSeeMyUsgRep + 54)
#define ActShoRgtCol (ActSeeMyUsgRep + 55)
#define ActChgIco (ActSeeMyUsgRep + 56)
#define ActChgMnu (ActSeeMyUsgRep + 67)
#define ActChgMnu (ActSeeMyUsgRep + 57)
#define ActChgPriPho (ActSeeMyUsgRep + 58)
#define ActChgPriPrf (ActSeeMyUsgRep + 59)
#define ActChgNtfPrf (ActSeeMyUsgRep + 60)

View File

@ -357,8 +357,6 @@ Buenos d
// TODO: Mensajes > Anuncios cuando no estás identificado, deberían salir algunos, ¿por qué no indicar que se muestren para todos?
// TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes.
// TODO: Chequear todas las directivas <label>
// TODO: Fix bug: Al mostrar una orla con todos los profesores de SWAD, se muestran primeros los profesores y luego los no editores (repetidos algunos)
@ -376,6 +374,8 @@ Buenos d
// Para bloquear/desbloquear se usará un icono candado
// Para preasignado/no preasignado usar otro icono (usuario/usuario tachado, por ej.)
// TODO: Actualizar ayuda en GitHub, por ejemplo Preferencias ahora es Ajustes.
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
@ -395,10 +395,13 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 18.50.3 (2019-02-18)"
#define Log_PLATFORM_VERSION "SWAD 18.51 (2019-02-19)"
#define CSS_FILE "swad18.41.1.css"
#define JS_FILE "swad18.32.1.js"
#define JS_FILE "swad18.51.js"
/*
Version 18.51: Feb 19, 2019 The number of publications by default in the timeline becomes 50 (before it was 20).
Changes in javascript related to timeline. (237281 lines)
Version 18.50.4: Feb 18, 2019 Fixed bug in actions. (237276 lines)
Version 18.50.3: Feb 18, 2019 Fixed bug in user's webs and social networks. (237275 lines)
Version 18.50.2: Feb 18, 2019 Changes in some messages. (237276 lines)
Version 18.50.1: Feb 18, 2019 Database engine optional optimizations. (237275 lines)

View File

@ -745,10 +745,12 @@ static void Lay_WriteScriptParamsAJAX (void)
put parameters used by AJAX */
fprintf (Gbl.F.Out,"var RefreshParamNxtActNewPub = \"act=%ld\";\n"
"var RefreshParamNxtActOldPub = \"act=%ld\";\n"
"var RefreshParamMaxOldPubsToGetAndShow = \"%u\";\n"
"var RefreshParamUsr = \"\";\n" // No user specified
"var RefreshParamWhichUsrs = \"WhichUsrs=%u\";\n",
Act_GetActCod (ActRefNewSocPubGbl),
Act_GetActCod (ActRefOldSocPubGbl),
Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW,
(unsigned) Gbl.Social.WhichUsrs);
break;
case ActSeeOthPubPrf:
@ -772,8 +774,10 @@ static void Lay_WriteScriptParamsAJAX (void)
Nck_GetNicknameFromUsrCod (Gbl.Usrs.Other.UsrDat.UsrCod,
Gbl.Usrs.Other.UsrDat.Nickname);
fprintf (Gbl.F.Out,"var RefreshParamNxtActOldPub = \"act=%ld\";\n"
"var RefreshParamMaxOldPubsToGetAndShow = \"%u\";\n"
"var RefreshParamUsr = \"OtherUsrCod=%s\";\n",
Act_GetActCod (ActRefOldSocPubUsr),
Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW,
Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
break;
default:

View File

@ -59,13 +59,6 @@
#define Soc_MAX_CHARS_IN_POST 1000
// Number of recent publishings got and shown the first time, before refreshing
#define Soc_MAX_NEW_PUBS_TO_GET_AND_SHOW 10000 // Unlimited
#define Soc_MAX_REC_PUBS_TO_GET_AND_SHOW 20 // Recent publishings to show (first time)
#define Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW 20 // IMPORTANT: If you change this number,
// set also this constant to the new value
// in JavaScript function readOldTimelineData
typedef enum
{
Soc_TIMELINE_USR, // Show the timeline of a user

View File

@ -33,6 +33,12 @@
#define Soc_TIMELINE_SECTION_ID "timeline"
// Number of recent publishings got and shown the first time, before refreshing
#define Soc_MAX_NEW_PUBS_TO_GET_AND_SHOW 10000 // Unlimited
#define Soc_MAX_REC_PUBS_TO_GET_AND_SHOW 50 // Recent publishings to show (first time)
#define Soc_MAX_OLD_PUBS_TO_GET_AND_SHOW 50 // Old publishings are retrieved in packs of this size
// This constant is also used in JavaScript function readOldTimelineData
/*****************************************************************************/
/******************************** Public types *******************************/
/*****************************************************************************/