Skip to content

Commit

Permalink
Read event entries hidden instead of removed on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Apr 5, 2023
1 parent a3eed8f commit 285953d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ function refreshEvents (syncCode) {
break;
default:
getNewEvents(syncCode, urlVars);
cleanReadEvents();
hideReadEvents();
break;
}
}
Expand Down Expand Up @@ -913,8 +913,10 @@ function getNewEvents (code, urlVars) {
});
}

function cleanReadEvents () {
$('.js-event--read').remove();
function hideReadEvents () {
$('.js-event--read')
.not('.hidden')
.addClass('hidden');
}

function cleanUnstarredEvents () {
Expand Down

0 comments on commit 285953d

Please sign in to comment.