This commit is contained in:
Dobromir Popov
2025-11-22 19:46:28 +02:00
parent afc55b5208
commit cb0d307775
4 changed files with 87 additions and 51 deletions

View File

@@ -99,6 +99,12 @@
function renderAnnotationsList(annotations) {
const listContainer = document.getElementById('annotations-list');
const noAnnotationsMsg = document.getElementById('no-annotations-msg');
const annotationCountEl = document.getElementById('annotation-count');
// Update count immediately
if (annotationCountEl) {
annotationCountEl.textContent = annotations.length;
}
if (annotations.length === 0) {
noAnnotationsMsg.style.display = 'block';
@@ -196,9 +202,6 @@
listContainer.appendChild(item);
});
// Update annotation count
document.getElementById('annotation-count').textContent = annotations.length;
}
function viewAnnotation(annotation) {