From 9d46cff4200e2297a28b8a85866b258fc759ae36 Mon Sep 17 00:00:00 2001 From: acanas Date: Sun, 21 Nov 2021 01:36:36 +0100 Subject: [PATCH] Version 21.58: Nov 21, 2021 Code refactoring in timeline. --- js/swad21.58.js | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/js/swad21.58.js b/js/swad21.58.js index 510e1e922..3552a84b3 100644 --- a/js/swad21.58.js +++ b/js/swad21.58.js @@ -938,28 +938,10 @@ function readNewTimelineData () { // ...to the top of UL 'new_timeline_list') var newTimeline = document.getElementById('new_timeline_list'); // Access to UL with the new timeline - for (var i=1; i<=numNotesJustGot; i++) { - // Check if the last child (the oldest) in just now timeline... - // ...is the last ocurrence of the note - var mostRecentOcurrenceOfNote = true; - var lastChildIndex = numNotesJustGot - i; - var noteCode = justNowTimeline.lastChild.dataset.noteCode; - for (var j=0; j