diff --git a/static/reader/pdf.js b/static/reader/pdf.js index b4bbed3..6e095f1 100644 --- a/static/reader/pdf.js +++ b/static/reader/pdf.js @@ -144,7 +144,7 @@ function removeAnnotation(id) { annotations = annotations.filter(function(annotation) { return annotation.id != id }) - Ox.$parent.postMessage('removeAnnotation', {id: selected.dataset.id}) + Ox.$parent.postMessage('removeAnnotation', {id: id}) } function loadAnnotations(page) {