# HG changeset patch
# User veltr
# Date 1374497795 -7200
# Node ID bad0e6c60b6302922f44191978f0d67a5da528f8
# Parent 63dae3d252555588d83fc58c44d6ab907d65b134
Added local/other distinction in annotations
diff -r 63dae3d25255 -r bad0e6c60b63 integration/annotation-article.html
--- a/integration/annotation-article.html Mon Jul 22 12:02:47 2013 +0200
+++ b/integration/annotation-article.html Mon Jul 22 14:56:35 2013 +0200
@@ -408,10 +408,15 @@
-
-
-
Liste des annotations
-
+
+
+
00 annotations dans ce dossier
+
+
+
+
00 annotations dans d'autres dossiers
+
+
@@ -549,39 +554,67 @@
diff -r 63dae3d25255 -r bad0e6c60b63 integration/css/annotation-article.css
--- a/integration/css/annotation-article.css Mon Jul 22 12:02:47 2013 +0200
+++ b/integration/css/annotation-article.css Mon Jul 22 14:56:35 2013 +0200
@@ -192,3 +192,7 @@
.annotation-fb-bottom {
left: 0; right: 0;
}
+
+.annotation-longview {
+ display: none;
+}
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(
'