From ca72dc3069bcf41375e1d406ad2c28f379d1fe81 Mon Sep 17 00:00:00 2001 From: acanas Date: Fri, 30 Apr 2021 13:11:07 +0200 Subject: [PATCH] Version 20.69: Apr 30, 2021 Changes in timeline to not repeat notes in new activity. --- js/{swad20.6.2.js => swad20.69.js} | 45 ++++++++++++++++++++++-------- swad_changelog.h | 5 ++-- swad_timeline_publication.c | 5 +++- 3 files changed, 40 insertions(+), 15 deletions(-) rename js/{swad20.6.2.js => swad20.69.js} (98%) diff --git a/js/swad20.6.2.js b/js/swad20.69.js similarity index 98% rename from js/swad20.6.2.js rename to js/swad20.69.js index 9b0c36c5..e0369b1a 100644 --- a/js/swad20.6.2.js +++ b/js/swad20.69.js @@ -924,8 +924,8 @@ function readNewTimelineData () { if (justNowTimeline) { justNowTimeline.innerHTML = objXMLHttpReqNewTL.responseText; // Update list of publications in just now timeline - var countJustNowTimeline = justNowTimeline.childNodes.length; - if (countJustNowTimeline) { // New pubs just retrieved + var numNotesJustGot = justNowTimeline.childNodes.length; + if (numNotesJustGot) { // New notes just received // Scripts in timeline got via AJAX are not executed ==> execute them evalScriptsInElem (justNowTimeline); @@ -934,10 +934,10 @@ function readNewTimelineData () { MathJax.typeset(); // Move just received timeline to top of new timeline - var newTimeline = document.getElementById('new_timeline_list'); // Access to UL with the new timeline - - // Move all the LI elements in UL 'just_now_timeline_list' to the top of UL 'new_timeline_list' - for (var i=0; iPubType), Pub->PublisherCod);