mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-20 00:02:42 +02:00
Version 15.104.1
This commit is contained in:
parent
8bc168dabb
commit
759e45214b
|
@ -447,9 +447,17 @@ function readSocialTimelineData() {
|
|||
var delay = parseInt(objXMLHttpReqSoc.responseText.substring(0,endOfDelay)); // Get refresh delay
|
||||
var htmlSocialTimeline = objXMLHttpReqSoc.responseText.substring(endOfDelay+1); // Get HTML code for social timeline
|
||||
|
||||
var divSocialTimeline = document.getElementById('recent_timeline'); // Access to social timeline DIV
|
||||
if (divSocialTimeline)
|
||||
divSocialTimeline.innerHTML = htmlSocialTimeline; // Update global connected DIV
|
||||
var recentTimeline = document.getElementById('recent_timeline'); // Access to social timeline DIV
|
||||
if (recentTimeline) {
|
||||
recentTimeline.innerHTML = htmlSocialTimeline; // Update list of publishings in recent timeline
|
||||
var lengthRecentTimeline = recentTimeline.childNodes.length;
|
||||
if (lengthRecentTimeline) {
|
||||
var timeline = document.getElementById("timeline");
|
||||
for(var i=0; i < lengthRecentTimeline; i++)
|
||||
timeline.insertBefore(recentTimeline.lastChild, timeline.childNodes[0]);
|
||||
}
|
||||
}
|
||||
|
||||
if (delay >= 5000) // If refresh slower than 1 time each 5 seconds, do refresh; else abort
|
||||
setTimeout('refreshSocialTimeline()',delay);
|
||||
}
|
||||
|
|
|
@ -118,13 +118,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.104 (2016-01-09)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.104.1 (2016-01-09)"
|
||||
#define CSS_FILE "swad15.102.css"
|
||||
#define JS_FILE "swad15.104.js"
|
||||
|
||||
// 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
|
||||
/*
|
||||
Version 15.104.1: Jan 09, 2016 Refresh recent social timeline via AJAX. (191727 lines)
|
||||
Version 15.104: Jan 09, 2016 Refresh recent social timeline via AJAX. Not finished. (191720 lines)
|
||||
Version 15.103.2: Jan 09, 2016 Check that social post or comments are not empty. (191652 lines)
|
||||
Version 15.103.1: Jan 08, 2016 Changes in timeline. (191646 lines)
|
||||
|
|
|
@ -371,13 +371,12 @@ static void Soc_ShowTimeline (const char *Query,Act_Action_t UpdateAction,
|
|||
Soc_PutHiddenFormToWriteNewPost ();
|
||||
|
||||
/***** Place to insert new publishings *****/
|
||||
fprintf (Gbl.F.Out,"<ul id=\"recent_timeline\" class=\"LIST_LEFT\""
|
||||
" style=\"background:yellow;\">");
|
||||
fprintf (Gbl.F.Out,"<ul id=\"recent_timeline\" class=\"LIST_LEFT\">");
|
||||
|
||||
fprintf (Gbl.F.Out,"</ul>");
|
||||
|
||||
/***** List publishings in timeline one by one *****/
|
||||
fprintf (Gbl.F.Out,"<ul class=\"LIST_LEFT\">");
|
||||
fprintf (Gbl.F.Out,"<ul id=\"timeline\" class=\"LIST_LEFT\">");
|
||||
for (NumPub = 0;
|
||||
NumPub < NumPublishings;
|
||||
NumPub++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user