diff -r 63dae3d25255 -r bad0e6c60b63 integration/js/annotation-article.js --- a/integration/js/annotation-article.js Mon Jul 22 12:02:47 2013 +0200 +++ b/integration/js/annotation-article.js Mon Jul 22 14:56:35 2013 +0200 @@ -109,20 +109,23 @@ length: end - start, color: color, comment: "", - creator: username, + creator: currentUser, tags: [], annotatedText: textinfo.text.substring(start, end), beforeText: textinfo.text.substring(start - 40, start).replace(/^[\S]*\s+/,''), - afterText: textinfo.text.substring(end, end + 40).replace(/\s+[\S]*$/,'') + afterText: textinfo.text.substring(end, end + 40).replace(/\s+[\S]*$/,''), + documentaryFile: currentDocumentaryFile } annotations.push(annotation); showAnnotation(annotation, true); + updateAnnotationCounts(); } var frameTpl = _.template( '