mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-31 22:05:23 +02:00
Version 16.132.15
This commit is contained in:
parent
07d206430d
commit
c3ea875468
|
@ -1452,8 +1452,8 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
/* ActHom */{ 844,-1,TabUnk,ActHom ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,NULL ,NULL},
|
/* ActHom */{ 844,-1,TabUnk,ActHom ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,NULL ,NULL},
|
||||||
/* ActMnu */{ 2,-1,TabUnk,ActMnu ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,NULL ,NULL},
|
/* ActMnu */{ 2,-1,TabUnk,ActMnu ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,NULL ,NULL},
|
||||||
/* ActRefCon */{ 845,-1,TabUnk,ActRefCon ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Lay_RefreshNotifsAndConnected ,NULL},
|
/* ActRefCon */{ 845,-1,TabUnk,ActRefCon ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Lay_RefreshNotifsAndConnected ,NULL},
|
||||||
/* ActRefLstClk */{ 994,-1,TabUnk,ActRefLstClk ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Lay_RefreshLastClicks ,NULL},
|
/* ActRefLstClk */{ 994,-1,TabUnk,ActRefLstClk ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Lay_RefreshLastClicks ,NULL},
|
||||||
/* ActRefNewSocPubGbl*/{1509,-1,TabUnk,ActRefNewSocPubGbl ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshNewTimelineGbl ,NULL},
|
/* ActRefNewSocPubGbl*/{1509,-1,TabUnk,ActRefNewSocPubGbl ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshNewTimelineGbl ,NULL},
|
||||||
/* ActRefOldSocPubGbl*/{1510,-1,TabUnk,ActRefOldSocPubGbl ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshOldTimelineGbl ,NULL},
|
/* ActRefOldSocPubGbl*/{1510,-1,TabUnk,ActRefOldSocPubGbl ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshOldTimelineGbl ,NULL},
|
||||||
/* ActRefOldSocPubUsr*/{1511,-1,TabUnk,ActRefOldSocPubUsr ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshOldTimelineUsr ,NULL},
|
/* ActRefOldSocPubUsr*/{1511,-1,TabUnk,ActRefOldSocPubUsr ,0x1FE,0x1FE,0x1FE,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Soc_RefreshOldTimelineUsr ,NULL},
|
||||||
/* ActWebSvc */{ 892,-1,TabUnk,ActWebSvc ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Plg_WebService ,NULL},
|
/* ActWebSvc */{ 892,-1,TabUnk,ActWebSvc ,0x1FF,0x1FF,0x1FF,Act_CONT_NORM,Act_THIS_WINDOW,NULL ,Plg_WebService ,NULL},
|
||||||
|
|
|
@ -196,13 +196,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.132.14 (2017-02-05)"
|
#define Log_PLATFORM_VERSION "SWAD 16.132.15 (2017-02-06)"
|
||||||
#define CSS_FILE "swad16.132.4.css"
|
#define CSS_FILE "swad16.132.4.css"
|
||||||
#define JS_FILE "swad16.123.js"
|
#define JS_FILE "swad16.123.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 16.132.15:Feb 06, 2017 Bug fixing related to AJAX and automatic refresh. (211916 lines)
|
||||||
Version 16.132.14:Feb 05, 2017 Bug fixing related to AJAX and automatic refresh. (211916 lines)
|
Version 16.132.14:Feb 05, 2017 Bug fixing related to AJAX and automatic refresh. (211916 lines)
|
||||||
Version 16.132.13:Feb 01, 2017 Global connected in right column is shown only for system admins. (211904 lines)
|
Version 16.132.13:Feb 01, 2017 Global connected in right column is shown only for system admins. (211904 lines)
|
||||||
Version 16.132.12:Feb 01, 2017 Code refactoring and bug fixing in parameters related to users list type. (211900 lines)
|
Version 16.132.12:Feb 01, 2017 Code refactoring and bug fixing in parameters related to users list type. (211900 lines)
|
||||||
|
|
|
@ -1656,9 +1656,14 @@ void Lay_RefreshNotifsAndConnected (void)
|
||||||
|
|
||||||
void Lay_RefreshLastClicks (void)
|
void Lay_RefreshLastClicks (void)
|
||||||
{
|
{
|
||||||
// Send, before the HTML, the refresh time
|
if (Gbl.Session.IsOpen) // If session has been closed, do not write anything
|
||||||
fprintf (Gbl.F.Out,"%lu|",Cfg_TIME_TO_REFRESH_LAST_CLICKS);
|
{
|
||||||
Con_GetAndShowLastClicks ();
|
/***** Send, before the HTML, the refresh time *****/
|
||||||
|
fprintf (Gbl.F.Out,"%lu|",Cfg_TIME_TO_REFRESH_LAST_CLICKS);
|
||||||
|
|
||||||
|
/***** Get and show last clicks *****/
|
||||||
|
Con_GetAndShowLastClicks ();
|
||||||
|
}
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
|
|
@ -134,7 +134,6 @@ extern struct Globals Gbl;
|
||||||
static void Soc_ShowTimelineGblHighlightingNot (long NotCod);
|
static void Soc_ShowTimelineGblHighlightingNot (long NotCod);
|
||||||
static void Soc_ShowTimelineUsrHighlightingNot (long NotCod);
|
static void Soc_ShowTimelineUsrHighlightingNot (long NotCod);
|
||||||
|
|
||||||
static void Soc_GetAndShowNewTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl);
|
|
||||||
static void Soc_GetAndShowOldTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl);
|
static void Soc_GetAndShowOldTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl);
|
||||||
|
|
||||||
static void Soc_BuildQueryToGetTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl,
|
static void Soc_BuildQueryToGetTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl,
|
||||||
|
@ -398,32 +397,26 @@ static void Soc_ShowTimelineUsrHighlightingNot (long NotCod)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Soc_RefreshNewTimelineGbl (void)
|
void Soc_RefreshNewTimelineGbl (void)
|
||||||
{
|
|
||||||
// Send, before the HTML, the refresh time
|
|
||||||
fprintf (Gbl.F.Out,"%lu|",
|
|
||||||
Cfg_TIME_TO_REFRESH_SOCIAL_TIMELINE);
|
|
||||||
|
|
||||||
Soc_GetAndShowNewTimeline (Soc_TIMELINE_GBL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/****************** Get and show new publishings in timeline *****************/
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
static void Soc_GetAndShowNewTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl)
|
|
||||||
{
|
{
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/***** Build query to get timeline *****/
|
if (Gbl.Session.IsOpen) // If session has been closed, do not write anything
|
||||||
Soc_BuildQueryToGetTimeline (TimelineUsrOrGbl,
|
{
|
||||||
Soc_GET_ONLY_NEW_PUBS,
|
/***** Send, before the HTML, the refresh time *****/
|
||||||
Query);
|
fprintf (Gbl.F.Out,"%lu|",
|
||||||
|
Cfg_TIME_TO_REFRESH_SOCIAL_TIMELINE);
|
||||||
|
|
||||||
/***** Show new timeline *****/
|
/***** Build query to get timeline *****/
|
||||||
Soc_InsertNewPubsInTimeline (Query);
|
Soc_BuildQueryToGetTimeline (Soc_TIMELINE_GBL,
|
||||||
|
Soc_GET_ONLY_NEW_PUBS,
|
||||||
|
Query);
|
||||||
|
|
||||||
/***** Drop temporary tables *****/
|
/***** Show new timeline *****/
|
||||||
Soc_DropTemporaryTablesUsedToQueryTimeline ();
|
Soc_InsertNewPubsInTimeline (Query);
|
||||||
|
|
||||||
|
/***** Drop temporary tables *****/
|
||||||
|
Soc_DropTemporaryTablesUsedToQueryTimeline ();
|
||||||
|
}
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user